编写题解 1148: C语言训练-计算1977!*(人生苦短,我用python) 摘要:第一种方法:使用python的math库中的factorial函数,这个函数可以直接求一个数的阶乘(代码最少)import math print(math.factorial(1977))第二种方法…… 题解列表 2022年04月21日 0 点赞 0 评论 795 浏览 评分:6.0
大家不要以为我在装X,但是真的很简单 解题思路:直接用importmath就好了注意事项:无参考代码:importmathprint(math.factorial(1977)) 题解列表 2022年03月16日 0 点赞 1 评论 528 浏览 评分:8.0
C语言训练-计算1977!* importmathprint(math.factorial(1977))直接调用math库中求阶乘的函数,python就是方便 题解列表 2022年02月09日 0 点赞 0 评论 599 浏览 评分:9.9
编写题解 1148: C语言训练-计算1977!* 摘要:解题思路:注意事项:参考代码:第一种:n = 1for i in range(1,1978): n = n*iprint(n)第二种:ls = [1]for i in range(2,1978)…… 题解列表 2021年12月18日 0 点赞 0 评论 696 浏览 评分:0.0
1148: C语言训练-计算1977!*-题解(python) 解题思路:注意事项:参考代码:a=1977s=1whilea:s*=aa-=1print(s) 题解列表 2021年10月22日 0 点赞 0 评论 489 浏览 评分:0.0
C语言训练-计算1977!*-题解(Python代码) importmathprint(math.factorial(1977))人生苦短,我用python第一次发解题^^内容太少发不出那我就打多一点字8 题解列表 2020年03月20日 0 点赞 0 评论 1083 浏览 评分:6.0
C语言训练-计算1977!*-题解(Python代码) //用Python非常简单,因为Python对于类型长度没有要求,所以完全可以直接写下去i=int(1)b=int(1)whilei 题解列表 2019年07月15日 0 点赞 0 评论 1541 浏览 评分:5.5