作為例外類型被印出的字串,就是發生的內建例外(built-in exception) 的名稱。 ... NameError('HiThere') ... except NameError: ... print('An exception flew by!
確定! 回上一頁