擅长:python、mysql、java
<p>你要做什么样的计算?或许<a href="http://www.r-project.org/" rel="nofollow noreferrer">R</a>是另一种选择?</p>
<p>编辑:举几个基本的例子</p>
<pre><code># Basic usage
data <- read.csv("myfile.csv")
# Pipe-separated values
data <- read.csv("myfile.csv", sep="|")
# File with header (columns will be named as header)
data <- read.csv("myfile.csv", header=TRUE)
# Skip the first 5 lines of the file
data <- read.csv("myfile.csv", skip=5)
# Read only 100 lines
data <- read.csv("myfile.csv", nrows=100)
</code></pre>