当我卷曲到 API 调用链接http://example.com/passkey=wedsmdjsjmdd
curl 'http://example.com/passkey=wedsmdjsjmdd'
我以 csv 文件格式获取员工输出数据,例如:
"Steve","421","0","421","2","","","","","","","","","421","0","421","2"
如何使用python解析这个。
我试过了:
import csv
cr = csv.reader(open('http://example.com/passkey=wedsmdjsjmdd',"rb"))
for row in cr:
print row
但它没有用,我得到了一个错误
http://example.com/passkey=wedsmdjsjmdd No such file or directory:
谢谢!