結果 : how to write exit function in python