0
试图运行这段代码:亚马逊S3文件上传
import boto
s3 = boto.connect_s3()
bucket = s3.create_bucket('hopethisworks') # bucket names must be unique
key = bucket.new_key('examples/first_file.csv')
key.set_contents_from_filename('C:\Python27\all_month.csv')
key.set_acl('public-read')
得到以下错误:
IOError: [Errno 22] invalid mode ('rb') or filename: 'C:\Python27\x07ll_month.csv'
如何突破这个?
这有帮助!谢谢。 – AK1992