标签:logs == log for 偶数 循环 int div span
1、
num = 1 while num<=100: if num%2 ==0: print(num) num += 1
2、
for num in range(1,101): if num % 2 == 0: print(num)
while 无限循环
for 有限循环
标签:logs == log for 偶数 循环 int div span
原文地址:http://www.cnblogs.com/ryuukyou/p/7364365.html