标签:bre cto nbsp break txt 问题 int lin one
f=open(‘/home/xbwang/Desktop/all_vectors‘,‘r‘)
while True :
line=f.readline()
if line == None : break
a=line.split()
b=a[0]
print(b)
f1=open(‘/home/xbwang/Desktop/a.txt‘,‘a‘)
f1.write(b+‘\n‘)
标签:bre cto nbsp break txt 问题 int lin one
原文地址:http://www.cnblogs.com/ymjyqsx/p/6208475.html