Loading

python访问文件夹内的文件

关于使用python进行文件操作之访问文件夹下的文件

import os

path = 'C:\......'

for _, _, files in os.walk(path):
  for n in files:
    print(n)
    # 打印文件名
posted @ 2021-09-23 08:14  JavicxhloWong  阅读(255)  评论(0编辑  收藏  举报