p1.py 154 Bytes Edit 1 2 3 4 5 with open(r"c:\Users\D\Desktop\txt.txt",'r',encoding='utf-8') as file1: for data in file1: if 'xq:10本'in data: