m = int(input('m = ')) n = int(input('n = ')) fm = 1 for num in range(1, m + 1): fm = num fn = 1 for num in range(1, n + 1): fn = num fmn = 1 for num in range(1, m - n + 1): fmn *= num print(fm // fn // fmn) 老师上课讲得 我没记住这是咋回事了 谁知道谢谢告诉下
Python中求阶乘 Python 阶乘实例
感谢关注您了,不过我还是不明白这段代码的每条是什么意思