如何更新字典中特定键的值Dictionary<string, int>?
Dictionary<string, int>
只需指向给定键的字典并分配一个新值:
myDictionary[myKey] = myNewValue;