天天看點

1-100累乘

i = 1
sum = 1
while i <= 100:
    sum *= i
    i += 1
print(sum)