建網(wǎng)站是什么專業(yè)類別寧德市高中階段招生信息平臺
第一部分:選擇題
1、Python L14 (15分)
運行下面程序,輸出的結(jié)果是( )。
d = {1: "red", 2: "yellow", 3: "blue", 4: "green"}
print(d[2])
- red
- yellow
- blue
- green
正確答案:B
運行下面程序,輸出的結(jié)果是( )。
d = {1: "red", 2: "yellow", 3: "blue", 4: "green"}
print(d[2])
正確答案:B