1. 基本导入 在Python中使用pandas导入.xlsx文件的方法是read_excel()。 # coding=utf-8 import pandas as pd df = pd.read_excel(r'G:\test.xlsx') print(df) 电脑中的文件路径默认使用\,这个时候需要在路径前面加一个r(转义符)避免路径里面的\被转义。也可以不加 r,但是需要把路径里面的所有\转换成/...