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