def diedai (number):
product=1
for i in range(number):
product=product*(i+1)
print 'iii',i
print product
return product
c=diedai(number=int(raw_input('Please you num:')))
print c
def digui(number):
if number <= 1 :
return 1
else:
return number * digui(number - 1)
d=digui(number=int(raw_input('Plase you num d:')))
print d
转载于:https://www.cnblogs.com/yjz1/p/5368148.html