python 中 (0,1,0.1)取法

for i in range(0,1,0.1): print(i) 会报错:'float' object cannot be interpreted as an integercode     正确作法class import numpy as np for i in np.arange(0,1,0.1): print(i)
相关文章
相关标签/搜索