Python例外処理:正しい例外の種類を選ぼう!
以下の例外の種類のうち誤ったものを選べ.
'ValueError'
'ZeroDivisionError'
'AttributeError'
'TypeError'
'NameError'
'ModuleNotFoundError'
'IndentationError'
'IndexError'
'ZeroDefinitionError'
'KeyError'
正解:'ZeroDefinitionError'
Pythonでは、'ZeroDefinitionError'という例外は存在しません。
原文地址: https://www.cveoy.top/t/topic/hEz1 著作权归作者所有。请勿转载和采集!