f=open("123456.txt","r")
for s in f:
l=s.rsplit()
a= (l[0].ljust(30," ")+l[1].ljust(30," ")+l[2].ljust(30," ")+l[3].ljust(30," "))
#print(a)
file=open('147852.txt','a')
file.write(str(a)+'\n')
file.close
txt中矩阵按列对齐
最新推荐文章于 2021-04-29 15:09:35 发布