发布时间:2019-06-22 23:46:16编辑:auto阅读(2554)
letter -> LadderScore0 -> LadderScore1 -> LadderScore2 -> LadderScore3 -> LadderScore4 -> LadderScore5 -> LadderScore6 -> LadderScore7 -> LadderScore8 -> LadderScore9 -> WeeklyDoneCount0 -> WeeklyDoneCount1 -> WeeklyDoneCount2 -> WeeklyDoneCount3 -> WeeklyDoneCount4 -> WeeklyDoneCount5 -> WeeklyDoneCount6 -> WeeklyDoneCount7 -> WeeklyDoneCount8 -> WeeklyDoneCount9 -> LastFPS0 -> LastFPS1 -> LastFPS2 -> LastFPS3 -> LastFPS4 -> LastFPS5 -> LastFPS6 -> LastFPS7 -> LastFPS8 -> LastFPS9 ->
脚本内容如下
#!/usr/bin/env python
#coding:utf-8
import os
format = '%-*s%-*s\n'
file = open('a.txt','r')
f = open('file.txt','a')
all = ""
for i in file:
i=i.split(' ')
a = format % (20, i[0], 20, '->')
all += a
f.write(a)
f.close()
file.close()
print all文件展示
上一篇: Python深浅拷贝
下一篇: python功能笔记——图像处理
51310
50761
41357
38165
32640
29535
28381
23255
23224
21548
1622°
2356°
1958°
1904°
2235°
1942°
2633°
4416°
4254°
3027°