Replace data in next line after matched line

后端 未结 0 1684
[愿得一人]
[愿得一人] 2020-12-07 22:42

I have a code below

with open(\'file1\',\'r\') as fin:
   for line in fin:
       l=line[-5:]
       l2=re.sub(\'^.*\\((.*?)\\)[^\\(]*$\',\'\\g<1>\',lin         


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