codegay 当前离线
少校
""" 如何查找不包含某关键字的文本文件.py http://bbs.bathome.net/thread-39451-1-1.html 2016年2月24日 07:19:50 codegay 实际上,发现很坑。需要处理编码问题。 """ import os s=[r for r in os.listdir(".") if r.endswith(".bat") and "wmic" not in open(r).read()] print(s)复制代码
TOP