有点奇怪的问题求解答
num = 0 sum = 0 while num<=1000: num = num+1 if num % 2 == 1: continue sum = sum+num print(sum) 为什么前面while <1000和<=1000的最后结果一样
num = 0 sum = 0 while num<=1000: num = num+1 if num % 2 == 1: continue sum = sum+num print(sum) 为什么前面while <1000和<=1000的最后结果一样
2021-02-03
举报