📜  python for 循环浮点增量 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:09.961000             🧑  作者: Mango

代码示例1
import numpy
k=1
for i in numpy.arange(0,3,0.2):
    for j in numpy.arange(k,k+3,1):
         print("I= %i J=%i"%(i,j))
         k=k+0.2 
#ganesh