使用到的函数有:
os.path.splitext():分离文件名与扩展名

os.path.splitext(file)[0] 获得文件名

os.path.splitext(file)[1] 获得文件扩展名

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-09-05
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
相关资源
相似解决方案