結果 : how to write an exception in python