:
total = 0
num = int(num) #使用int函数转化后要重新赋值
for i in range(num):
total += i
print(total)
print(total)
cumsum(10.5)