In comparison to Java (in a string), you would do something like "First Line\r\nSecond Line"
.
(与Java(以字符串形式)相比,您将执行类似于"First Line\r\nSecond Line"
。)
So how would you do that in Python, for purposes of writing multiple lines to a regular file?
(那么,为了在常规文件中写多行,您将如何在Python中执行此操作?)
ask by FabianCook translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…