W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_function_recursion.py:
def tri_recursion(k): if(k>0): result = k+tri_recursion(k-1) print(result) else: result = 0 return result print("\n\nRecursion Example Results") tri_recursion(6)