結果 : how to exit a function in python