且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将文本追加到新文件中

更新时间:2022-11-18 22:08:13

您应该将 \\\
第一。这样你的换行符就会写在你的文本之前:

You should put the \n first. That way your newline will be written before your text:

f.append('\nhello again!')