如何在输出文件上打印新行?
当我尝试用“/n”添加新行时,它只打印/n
这就是我迄今为止所拥有的。
`` inputFile = open("demofile1.txt", "r") outFile = open("ji
string = line.split(',')
go =(string)[3::]
bo = [float(i) for i in go]
total = sum(bo)
pine = ("%8.2f"%total)
name = string[2] + "," + " " + string[1]
kale = (string[0] + " " + name + " " + "/n")
se)
当前结果
8
53 Baul
A999999
万千封印
SMILET
随时随地看视频慕课网APP
相关分类