打印奇数

 #打印0-100所有的奇数
oddnum=0
while oddnum<1000:
    if oddnum%2!=0:
        print(oddnum)
    oddnum=oddnum+1 

原文地址:https://www.cnblogs.com/themost/p/6358768.html