发布时间:2019-08-26 07:19:56编辑:auto阅读(1983)
s="xxx%d yyy%s\n" % (28,'jeapedu')
file_obj.write(s)
fd=open('format.txt','w')
head='%10s %10s %10s \n' % ('ID','Name','Record')
fd.write(head)
item1='%10d %10s %10.2f' % (9510442,'Jeapedu1',78.96)
fd.write(item1)
item2='%10d %10s %10.2f' % (9510443,'Jeapedu2',88.96)
fd.write(item2)
item3='%10d %10s %10.2f' % (9510444,'Jeapedu3',94.56)
fd.write(item3)
...
...
fd.close()
上一篇: centos7.3更换python版本-
下一篇: Python IDLE快捷键一览
48943
48072
38817
35939
30356
27142
26140
20976
20801
19151
689°
760°
738°
741°
719°
675°
781°
858°
997°
1241°