偶数方法一: num = 1 while num <= 100: if num%2 == 0: print(num) num+=1
基数方法一: num = 1 while num <= 100: if num%2 == 1: print(num) num+=1
偶数方法一: num = 1 while num <= 100: if num%2 == 0: print(num) num+=1
基数方法一: num = 1 while num <= 100: if num%2 == 1: print(num) num+=1