Python~recursive function递归函数

尾递归实现循环

def fact(n):
    if n==1:
        return 1
    else :
        return n * fact(n-1)

raw_input() 字符而非数字

unsupported operand type(s) for /: 'str' and 'int'

原文地址:https://www.cnblogs.com/lynclynn/p/5355738.html