2020
10-30
10-30
python boto和boto3操作bucket的示例
boto操作importdatetimeimportboto.s3.connectionfromboto.s3.keyimportKeyconn=boto.connect_s3(aws_access_key_id="123456",aws_secret_access_key="123456",host="127.0.0.1",port=8080,is_secure=False,calling_format=boto.s3.connection.OrdinaryCallingFormat(),)str_bucket_name="bucket_test"conn.create_bucket(str_bucket_name)#创建bucketforbucketinconn.get_all_buckets():#获取所有buc...
继续阅读 >