2017-02-15 283 views

回答

2

通过使用Boto3 library,您可以在下载文件后将文件上传到您的存储桶。 Here是您需要使用的boto3功能。

import boto3 
s3 = boto3.resource('s3') 
s3.meta.client.upload_file('/tmp/hello.txt', 'mybucket', 'hello.txt')