摘要: import os import shutil path='./' files = os.listdir(path) for f in files: folder_name = './' + f.split('.')[-1] if not os.path.exist(path): os.makedirs(folder_name) shutil.... 阅读全文
posted @ 2018-06-13 17:34 Erick-LONG 阅读(153) 评论(0) 推荐(0) 编辑
摘要: # -*- encoding: utf-8 -*- import os path = '/Users/erick/Downloads/【完结】实用主义学Python脚本' files = os.listdir(path) #print(files) for f in files: if 'fish' in f and f.endswith('.png'): prin... 阅读全文
posted @ 2018-06-13 17:33 Erick-LONG 阅读(184) 评论(0) 推荐(0) 编辑