Rename a file as an alternative name when FileExistsError in python

后端 未结 0 844
走了就别回头了
走了就别回头了 2021-01-16 12:58

Let\'s say:

  • I\'d like to rename a file original.txt as name.txt.
  • If name.txt exists, rename as name(0).txt
相关标签:
回答
  • 消灭零回复
提交回复
热议问题