次のようなファイルを作成したい:
X 値:
1
2
3
4
5
.
.
.
999
そのために私はそのコマンドを書きましたが;
のようなエラー: argument 1 must be string or read-only character buffer, not float
,,
from numpy import *
c = open("text.txt","w")
count = 0
while (count < 100):
print count
count = count + 0.1
c.write (count)
c.close