問題詳情

1. Python 語言中,參考附圖程式碼,請問選項中何者可以取得 nested_list 中的'hi'?
nested_list = [1, [2, 3, 5], ['hi', 2]] 
(A) nested_list[5]
(B) nested_list[3][1]
(C) nested_list[2][1]
(D) nested_list[2][0]

參考答案

答案:D

統計:A:0,B:1,C:0,D:2,E:0

難度:計算中