抛出异常

1. 实例:

raise Exception("Invalid level!", level)#level将作为一个参数传给错误捕捉方

father:: python