python怎么读取某个文件夹下的全部文件

2025-03-10 06:50:48
推荐回答(1个)
回答1:

import os
path=raw_input('enter the path:')
os.chdir(path)
files=os.listdir(path)