源代码:data = pd.read_csv(r'E:\文档\其他\weather1.csv')
解决:方法一:data = pd.read_csv(r'E:\文档\其他\weather1.csv',encoding='gb2312')
方法二:with open("E:\文档\其他\weather1.csv") as f:
data = pd.read_csv(f)
f.close()
源代码:data = pd.read_csv(r'E:\文档\其他\weather1.csv')
解决:方法一:data = pd.read_csv(r'E:\文档\其他\weather1.csv',encoding='gb2312')
方法二:with open("E:\文档\其他\weather1.csv") as f:
data = pd.read_csv(f)
f.close()