with open(‘cisco1.txt‘) as cisco:
for each_line in cisco:
if not each_line.find(‘err-disabled‘) == -1:
i=each_line.strip()
print (i)
时间: 2024-10-20 04:30:29
with open(‘cisco1.txt‘) as cisco:
for each_line in cisco:
if not each_line.find(‘err-disabled‘) == -1:
i=each_line.strip()
print (i)