首页 > 代码库 > for(i=0,j=0;i<10,j<10;i++,j++)用python怎么写

for(i=0,j=0;i<10,j<10;i++,j++)用python怎么写

for i,j in zip(range(10),range(10)):
    i+=1
    j+=1


>>> i=j=0
>>> while i<10 and j<10:
    i+=1
    j+=1

for (x,y) in zip(range(10),range(10)): print x,y

for (i,j) in [(x,x) for x in range(0,10)]:        print str(i)+"="+str(j)

for(i=0,j=0;i<10,j<10;i++,j++)用python怎么写