它可以使用Numpy库来完成。函数的作用是:允许在float中执行步骤。但是,它返回一个numpy数组,为了方便起见,可以使用to list()将其转换为list。
for i in np.arange(0, 1, 0.1).tolist(): print i