#python --while 练习2
#输出1 - 100 内的奇数:
#!/usr/bin/env python
#-*- coding:utf8 -*-
num = 1
while num <= 100:
if num % 2 != 0:
print(num)
num += 1
#python --while 练习2
#输出1 - 100 内的奇数:
#!/usr/bin/env python
#-*- coding:utf8 -*-
num = 1
while num <= 100:
if num % 2 != 0:
print(num)
num += 1
转载于:https://www.cnblogs.com/v2018/p/8962969.html