【发布时间】:2014-07-27 23:01:11
【问题描述】:
我需要在 win7 上从 python 3.2 访问读取位于服务器中的 csv 文件。
文件名是
csv_file =
file_loc = '\\serverName.myCompanyName.com\\mypath\\Files\\myfile.csv'
with open(file_loc , 'r') as csv_file # error !!!
csv_reader = csv.reader(csv_file, delimiter=',')
错误:
IOError: [Errno 2] No such file or directory: '\\serverName.myCompanyName.com\\mypath\\Files\\myfile.csv'
但是,我可以访问该文件夹并从 win 7 打开文件。
谢谢
【问题讨论】:
标签: python csv python-3.x windows-7