尾递归实现循环
def fact(n): if n==1: return 1 else : return n * fact(n-1)
raw_input() 字符而非数字
unsupported operand type(s) for /: 'str' and 'int'
lynclynn 2016-04-05 16:54 原文
尾递归实现循环
def fact(n): if n==1: return 1 else : return n * fact(n-1)
raw_input() 字符而非数字
unsupported operand type(s) for /: 'str' and 'int'