1、如何用Python删除一个文件

os.remove(filename)或者os.unlink(filename)。

2、Python如何copy一个文件

shutil模块里有一个copyfile函数可以实现文件的拷贝。

相关文章:

  • 2021-12-05
  • 2022-01-07
  • 2021-12-12
  • 2021-12-12
  • 2021-09-07
  • 2020-06-22
  • 2020-10-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-08-23
  • 2022-12-23
相关资源
相似解决方案