#打印0-100所有的奇数oddnum=0while oddnum<1000: if oddnum%2!=0: print(oddnum) oddnum=oddnum+1
打印奇数
原文:http://www.cnblogs.com/themost/p/6358768.html