問題詳情

7. 關於 Python 之資料結構字典(dictionary)與例外處理(exception),執行附圖程式後,下列何者為輸出結果?


(A) KeyError: 'H'
(B) TypeError: list indices must be integers, not str
(C) SyntaxError: invalid syntax
(D) TypeError: unsupported operand type(s) for +: 'int' and 'str'

參考答案

答案:A
難度:計算中-1
書單:沒有書單,新增