ivor 当前离线
上校
with open("a.txt",'r') as file: for i in file: print("%s学生为:" % i.split( )[0], file=open("b.txt","a")) for j in range(3): print("%s %s" % ( i.split( )[1].split(",")[j], i.split( )[2].split(",")[j]), file=open("b.txt","a"))复制代码
TOP