摘要:
# multiply def multi(a): s=1 for i in a: s*=i return s def inp(): a=input('please input nums(split with comma):') return a if __name__=='__main__': try : a=in... 阅读全文
摘要:
#the factorial of n def fac1(n): s=1 for i in range(1,n+1): s*=i return s def fac2(n): if n==1: return 1 else : return n*fac2(n-1) def inputnum(): a=in... 阅读全文