我是不是对 Dictionary有什么误解?
第一次:
Dim jj As New Dictionary(Of String, Boolean) From {{"A", False}, {"B", False}}
MsgBox(jj(1))
提示:给定关键字不在字典中。
第二次:
Dim jj As New Dictionary(Of String, Boolean) From {{"A", False}, {"B", False}}
jj(1) = True
MsgBox(jj(1))
MsgBox(jj("B"))
结果第一个Msg 显示 "true"
第二个显示 "false"
我真的,完全给整糊涂了,我现在都不敢继续写下去了。