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