【发布时间】:2016-06-28 14:23:26
【问题描述】:
def upload(s):
conn=tinys3.Connection("AKIAJPOZEBO47FJYS3OA","04IZL8X9wlzBB5LkLlZD5GI/",tls=True)
f = open(s,'rb')
z=str(datetime.datetime.now().date())
x=z+'/'+s
conn.upload(x,f,'crawling1')
os.remove(s)
文件在我上传到s3 后没有删除它没有在本地目录中删除任何替代解决方案?
【问题讨论】: