Can Python read line from file with \n and print it in 2 lines?

后端 未结 0 1242
心在旅途
心在旅途 2021-01-06 15:58

I made text file in which I wrote:

My name\\n is

in code:

with open(file.txt) as f:
    for line in f:
        print         


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