我想创建一个文件:
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