谁知道后面怎么做?(Python)
  • 板块题目总版
  • 楼主nlhzh1818
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/4/21 12:57
  • 上次更新2024/4/21 12:59:04
查看原帖
谁知道后面怎么做?(Python)
1252174
nlhzh1818楼主2024/4/21 12:57

主要在于怎么获取后面7个0,结果也算出来了,顺便大家看看有问题没。代码如下:

import math
shu=int(input())
num=1
for i in range(1,shu+1):
    num*=math.factorial(i)
2024/4/21 12:57
加载中...