关于JD_spider.py中保存出的xlsx文件名字乱码的问题
Alucardlucas opened this issue · comments
Alucardlucas commented
33行处data.to_excel('./家居用品s.xlsx', index=False) 保存在目录下的表格名字是乱码请问要怎么解决
yhf commented
这个我本机测试没有问题呢!
yhf commented
你可能没安装好读写excel的moudle,你可以改成保存为.csv文件!
Alucardlucas commented
您用的是linux还是win7?我在win7的shell中执行出来中文好像一直是乱码, JD_spider.py我也就在首行写了#coding:utf-8
yhf commented
py3不需要开头加那句话,win7是可以的!你先改成to_csv试下。
Alucardlucas commented
好的我明天再尝试一下,谢谢您,早点休息
yhf commented
有问题再讨论呢。