如果想引發例外,可以使用 raise 指定要引發的例外物件或型態,只指定例外型態的 ... {self.balance})" class BankingException(Exception): def ...
確定! 回上一頁