read_file = open ('C:\Users\Mahya\Desktop\\automate\Autosupports\\at1.txt','r')
content = read_file.readlines()
for line in content:
if line.contains('===== BOOT TIME STATS ====='):
print found
我想读'===== BOOT TIME STATS ====='
这一行,把下面的行打印到下一行
请帮忙
Tags:
未经测试:
我猜您希望打印给定字符串第一次和第二次出现之间的行:
相关问题 更多 >
编程相关推荐