今天在处理一批数据,写代码时遇到这样的bug,先是没反应过来,后面debug时发现问题:
python rename(old, new) FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。
os.renames(old_path, new_path)报错
python rename(old, new) FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。
实际上debug发现,closed_0021_01已存在,因此报“当文件已存在时,无法创建该文件
python rename(old, new) FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2021-07-05
  • 2021-08-24
  • 2022-12-23
  • 2021-10-29
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2021-04-01
  • 2021-07-22
  • 2021-05-28
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案