結果 : how to end a recursive function python