最佳答案
当我做卷曲到一个 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:
谢谢!