随笔 - 106, 文章 - 1, 评论 - 1, 阅读 - 12万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

06 2022 档案

摘要:python写入csv 用Excel打开乱码的解决方法 来自:https://blog.csdn.net/gwruiki/article/details/123645329,感谢作者。 主要是因为编码格式不对,不能使用encoding='utf-8',改为encoding='GB18030'即可下面 阅读全文

posted @ 2022-06-07 23:45 小翁好 阅读(290) 评论(0) 推荐(0) 编辑

摘要:在运行python 脚本时,报错如下 f = open(file_name, 'r', encoding='utf-8')TypeError: expected str, bytes or os.PathLike object, not NoneType 这是因为我在前面的脚本 在生成文件名字的时候 阅读全文

posted @ 2022-06-04 13:30 小翁好 阅读(455) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示