0
我在下面提供的代碼一次打印輸出一行。但是,我想重寫代碼以一次打印所有內容。一次全部打印
def filters():
for LogLine in Log:
flag = True
for key,ConfLine in Conf.items():
for patterns in ConfLine:
print patterns
if re.match((DateString + patterns), LogLine):
flag = False
break
if(flag == False):
break
if(flag):
print LogLine
感謝