splitlines() and iterating over an opened file give different results

前端 未结 0 556
终归单人心
终归单人心 2021-01-18 03:16

I have a file with end-of-lines characters like \\r\\r\\n. With this, it works like I want:

with open(\'test.txt\', \'wb\') as f:
    f.write(b\'         


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