def check():
with open('cefuse.txt') as f:
datafile = f.readlines()
for line in datafile:
if line starts with 'Word 30' and contains only 0
return True
return False
def check():
with open('cefuse.txt') as f:
datafile = f.readlines()
for line in datafile:
if line startswith('Word 30') and '0' in line:
return True
return False
除了Christopher Peisert发布的链接外,还可以查看这个链接,Find keywords in a text file
另外,请阅读关于如何提问的指南,并实际提问。谢谢
我希望你的期望是这样的
相关问题 更多 >
编程相关推荐