import os

path = r"C:\Users\Administrator\Desktop\test\pdf\imagefolder" #文件夹目录
files = os.listdir(path)
print(files)

 

 

 

更多推荐

python读取文件名