摘要: Python文件夹备份 import os,shutil def file_copy(path1,path2): f2 = [filename1 for filename1 in os.listdir(path2)] for filename in os.listdir(path1): if fil 阅读全文
posted @ 2017-11-08 21:44 xsan 阅读(1391) 评论(0) 推荐(0) 编辑
摘要: Python模糊查询本地文件夹去除文件后缀 import os,re def fuzzy_search(path): word= input('请输入要查询的内容:') for filename in os.listdir(path): #遍历指定文件夹 re_filename = re.finda 阅读全文
posted @ 2017-11-08 19:25 xsan 阅读(1797) 评论(0) 推荐(0) 编辑