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