题目内容

如下关于异常处理的描述,正确的是( )。

A. try语句中有except子句就不能有finally子句
B. 引发一个不存在索引的列表元素会引起NameError错误
C. Python中容许利用raise语句由程序主动引起异常
D. Python中,能够用异常处理捕获程序中的全部错误

查看答案
更多问题

( )类是所有自定义异常类的父类。

A. BaseException
B. Throwable
C. Error
D. Exception

The Union contract expired at a time when wine makers usually need all the help they can get.( )

A. 对
B. 错

Only a few wineries have been automated so the owners have to rely heavily on the workers.( )

A. 对
B. 错

Owner Peter Mondaby do n’ t seem much disturbed by the strike ( )

A. 对
B. 错

答案查题题库