with open('e:/content.txt') as f: for line in f: if '==3346628==' in line: ………… 转载于:https://www.cnblogs.com/bushe/p/3963657.html