python_os

查看路径下的所有文件:

import os

all_gz = os.listdir("path")#得到的所有文件名以列表格式保存

 

posted @ 2017-09-22 12:46  Bingo_Python  阅读(121)  评论(0编辑  收藏  举报