简单小练习_文本搜索

# -*- 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)

 

posted @ 2018-06-13 17:33  Erick-LONG  阅读(184)  评论(0编辑  收藏  举报