結果 : how to exit function in python