函数内部调用函数自己称为递归 def run(x): print(x) if x/2 == 0 : return 0 return run(int(x/2)) 递归特点 必须包含明确的结束条件 递归效率不高,层次过多会导致栈溢出