进阶教程 用Python实现数字的阶乘 2024-02-11 程序员贵哥 0 用Python实现数字的阶乘:基础写法:def pythonit(): a = 1 for i in range(1,10): a = a*i print(a) pythonit()进阶写法:def python(n): a = 1 for i in range(1,n=1): a...