简单小练习_文本搜索
# -*- 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'): print('Found it!'+f)
# -*- 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'): print('Found it!'+f)