Eleo
Mechanical
- Mar 2, 2015
- 26
How to write in a text file the following data:
Increment 0: Step Time = 4.2613E-06
…
Increment 100: Step Time = 4.2613E-04
I used the code:
file.write('%s %d %s %s %6.4f \n '(frame.description[0],
frame.description[1],frame.description[2],frame.description[3],
frame.description[4]))
I have the error message TypeError: ‘str’ object is not callable.
Increment 0: Step Time = 4.2613E-06
…
Increment 100: Step Time = 4.2613E-04
I used the code:
file.write('%s %d %s %s %6.4f \n '(frame.description[0],
frame.description[1],frame.description[2],frame.description[3],
frame.description[4]))
I have the error message TypeError: ‘str’ object is not callable.