How to parsing a file in Python starting from a line containing specific string

后端 未结 0 1268
名媛妹妹
名媛妹妹 2021-01-27 13:10
import re

with open(\'dio.txt\') as f:
    for line in f:
        y = re.match(\'^Value   Node\', line)
        if y:
         next
        line = line.rstrip()
                


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题