获取桶列表

使用list_buckets获取桶列表

def list_buckets():
    try:
        resp = s3_client.list_buckets()
        print(resp)
        print('Existing buckets:')
        for bucket in resp['Buckets']:
            print(bucket["Name"])
    except ClientError as e:
        logging.error(e)