reading files in python using minimum lines of code

后端 未结 0 454
北恋
北恋 2020-12-08 11:17

Is it possible to reduce this 4 lines code to 1 or 2 lines?

with open(\'tt.txt\') as f:
    for i in f.readlines():
        if i != p.sub(\'\', i):
                   


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