以下是使用pandas库读取Excel文件的示例代码:
import pandas as pd df = pd.read_excel('file.xlsx', sheet_name='Sheet1') print(df)