答案 0 :(得分:0)
您可以使用pandas
:
import pandas as pd
# Read multiple sheets from one workbook
with pd.ExcelFile('path_to_file.xlsx') as xlsx:
df1 = pd.read_excel(xlsx, 'Sheet1')
df2 = pd.read_excel(xlsx, 'Sheet2')
# Work with specific columns
df1[['Column1', 'Column2']] # Do something with these
df1[['Column1', 'Column2']] # Do something with these