📜  boto3 从 s3 读取 excel 文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:46.638000             🧑  作者: Mango

代码示例1
import openpyxl
import io
import boto3

s3_file = s3.get_object(Bucket=bucket, Key=key)
xlsx_file = openpyxl.load_workbook(io.BytesIO(s3_file['Body'].read()))

#for more on how to use openpyxl follow this link https://www.pythonexcel.com/openpyxl.php