博客园  :: 首页  :: 管理

2020年9月18日

摘要: 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 阅读(4700) 评论(0) 推荐(1) 编辑