if num % 2 == 0: 这句如何解释
num = 0 sum = 0 while True: if num > 1000: break if num % 2 == 0: sum = sum + num num = num + 1 print(sum)
num = 0 sum = 0 while True: if num > 1000: break if num % 2 == 0: sum = sum + num num = num + 1 print(sum)
2021-03-07
举报