📜  python引发异常 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:24.325000             🧑  作者: Mango

代码示例6
# this raises a "NameError"

>>> raise NameError('HiThere')

Traceback (most recent call last):
  File "", line 1, in 
NameError: HiThere