📅  最后修改于: 2022-03-11 14:46:59.031000             🧑  作者: Mango
import boto3
BUCKET_NAME = 'Enter Your Bucket Name'
BUCKET_FILE_NAME = 'Enter File To be download'
LOCAL_FILE_NAME = 'Local File Name'
def download_s3_file():
s3 = boto3.client('s3')
s3.download_file(BUCKET_NAME, BUCKET_FILE_NAME, LOCAL_FILE_NAME)