結果 : how to leave a function in python