摘要: #11. 查找某个目录下是否存在某个文件名 ''' def isfile_name_exists(path,file_name): import os import os.path for i in os.listdir(path): if os.path.isfile(path+"\\"+i) and i==file_name: ... 阅读全文
posted @ 2019-05-28 17:55 腿短毛不多 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #2019/05/17 #1.基础题: ''' >>> import os >>> import os.path >>> os.listdir("e:\\") ['$360Section', '$baksd', '$LBak', '$RECYCLE.BIN', '.git', 'baidu.txt', 'douban' , 'music', 'Program Fi 阅读全文
posted @ 2019-05-28 17:55 腿短毛不多 阅读(234) 评论(0) 推荐(0) 编辑