#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/11/18 16:31
# @Author : lumia98@vip.qq.com
# @File : check
# @Software: PyCharm
import re
f = open('C:\\Users\super\Desktop\log\\16.txt', 'r', encoding='utf-8')
for line in f:
if re.findall('单存明细', line):
print(line)
f.close()
Python搜索查找文件内容
最新推荐文章于 2023-10-14 15:07:03 发布