def fact(n): if n == 0: return 1 else: return n * fact(n-1) num = eval(input("请输入一个整数:")) print(fact(abs(int(num))))
收起
你再仔细数下哦。看是不是多了一个0?
报告相同问题?