Sailing vessels are stand-on over power-driven vessels except ______.
A.in a crossing situation
B.in a meeting situation
C.when they are the overtaking vessel
D.on the inland waters of the PR China
第1题:
在完整的异常语句中,语句出现的顺序正确是()。
A.try-->except-->else-->finally
B.try-->else-->except-->finally
C.try-->else-->finally-->except
D.try-->except-->finally-->else
第2题:
在完整的异常语句中,子句出现的顺序正确的是_______。
A.try—>except—>else—>finally
B.try—>else—>except—>finally
C.try—>except—>finally—>else
D.try—>except—>except—>finally
第3题:
关于try-except,哪个选项的描述是正确的?
A.try-except可以捕获所有类型的程序错误
B.编写程序时应尽可能多的使用try-except,以提供更好的用户体验
C.try-except在程序中不可替代
D.文件打开或网络获取的成功性等
第4题:
用try-except语句进行异常处理时,try语句可以有多个,但except语句只有一个。
第5题:
Python处理异常的方式包括:
A.try……except
B.try……except……
C.try……except……except……else
D.try……except……else……finally
第6题:
在Python 3中,能使用下列哪个语句处理多个异常?()
A.except [NameError, FileNotFoundError]
B.except {NameError, FileNotFoundError}
C.except (NameError, FileNotFoundError)
D.except NameError, FileNotFoundError