I don t understand why I cannot write to file in my python program. I have list of strings measurements
. I want just write them to file. Instead of all strings it writes only 1 string. I cannot understand why.
This is my piece of code:
fmeasur = open(fmeasur_name, w )
line1st = rev number, alg time
fmeasur.write(line1st)
for i in xrange(len(measurements)):
fmeasur.write(measurements[i])
print measurements[i]
fmeasur.close()
我可以看看看所有这些ring子,但档案中只有一个。 问题是什么?