📅  最后修改于: 2022-03-11 14:45:40.763000             🧑  作者: Mango
import pdb
def fact(x):
f = 1
for i in range(1,x+1):
pdb.set_trace()
print (i)
f = f * i
return f
if __name__=="__main__":
print ("factorial of 3=",fact(3))