代码:

import os

path = r"C:\Users\Administrator\Desktop\***"

print('filenum:',len([lists for lists in os.listdir(path) if os.path.isfile(os.path.join(path, lists))]))

 

相关文章:

  • 2021-07-28
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-02-08
  • 2022-02-08
  • 2022-02-20
相关资源
相似解决方案