坐标迭代

cornersA = []
p=0
q=0
i=0
while p<=5000:
w=[]
w=(p,q)
p+=100
q+=200
i+=1


cornersA.append(w)
print 'cornersA=',cornersA

---------------------------------------------------------------

p=0

w = []
while p<5000:
p+=100
q=0

while q<=4000:
w=(p,q)
q+=100
cornersA.append(w)
else:continue
else:
pass
print 'cornersA=',cornersA
 
posted @ 2016-12-20 12:51  Littlefish-  阅读(179)  评论(0编辑  收藏  举报
Document