import pandas as pd data_file_encode = "gb18030" # gb18030,这个编码允许文字正常输出 with open("D:/pythoncor/pythonpr/ch4/ch4_watermelon_3.csv", mode = 'r', encoding = data_file_encode) as data_file: df = pd.read_csv(data_file) print(df)#输出数据
python中插入带有文字的csv文件
最新推荐文章于 2024-01-18 10:25:40 发布