使用while 循环实现输出 1-100 内的所有奇数;
a=1 while a<100: if a%2 == 1: print(a) a +=1 else: a +=1
posted on 2018-12-05 01:47 riling102 阅读(73) 评论(0) 收藏 举报