我是python的新手,我尝试了以下方法:
import numpy as np
x = np.arange(0.7,1.3,0.1)
print (x)
y = np.arange(0.6,1.3,0.1)
print (y)
输出为[ 0.7 0.8 0.9 1. 1.1 1.2 1.3]
和[ 0.6 0.7 0.8 0.9 1. 1.1 1.2]
。为什么在第一种情况下1.3出现在列表中而在第二种情况下却没有呢?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句