摘要:
1、python只列出当前目录(或者指定目录)下的文件或者目录条目 import os files,dirs=[],[] for item in os.listdir(): if os.path.isfile(item): files.append(item) elif os.path.isdir( 阅读全文
posted @ 2020-09-18 10:08 520_1351 阅读(5089) 评论(0) 推荐(1)
|
摘要:
1、python只列出当前目录(或者指定目录)下的文件或者目录条目 import os files,dirs=[],[] for item in os.listdir(): if os.path.isfile(item): files.append(item) elif os.path.isdir( 阅读全文
posted @ 2020-09-18 10:08 520_1351 阅读(5089) 评论(0) 推荐(1) |
||