how write to file perline python, what wrong in my python script?

后端 未结 0 1950
灰色年华
灰色年华 2021-02-14 09:11

Write to file all lines.

f = open(\'j:/text.txt\', \'r\')
lines = []
for line in f:
    lines.append(line)
    f1 = open(\'j:/out.txt\', \'a\')
    f1.write(\'\'.         


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