阅读背景:

如何强制Python的file.write()在Windows中使用与Linux中相同的换行符格式(“\ r \ n”与“\ n”)?

来源:互联网 

I have the simple code:

我有简单的代码:

f = open('out.txt','w')
f.write('line1\n')
f.write('line2')
f.close()
f = open('



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: