博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2022年6月4日

摘要: 在运行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 小翁好 阅读(422) 评论(0) 推荐(0) 编辑