用pandas的pd.read_excel()打开中文名的xlsx,报错,本来以为是xlrd的问题后来发现,是open()函数就报错: “UnicodeEncodeError: 'ascii' codec can't encode characters in position 26-30: ordinal not in range(128)” 但是同样的xlsx在win7下用pd.read_excel()打开正常 用print(locale.getdefaultlocale()) 检查一下编码: