【发布时间】:2015-06-03 07:25:10
【问题描述】:
我已通过.csv 文件发布请求,
input_file = data.get('file', None)
with input_file as datasheet:
header = datasheet.readline()
总是在第二行出现错误。我的文件类型也是Unicode,这就是为什么它再次在第三行为readline() 给出错误
【问题讨论】:
-
data.get()返回了什么? -
{u'file': u'C:\\sample_datasheet.csv'}