StackOverflow 文档 Swift Language 教程 字典 用 Key 改变词典的价值 用 Key 改变词典的价值 Created: November-22, 2018 var dict = ["name": "John", "surname": "Doe"] // Set the element with key: 'name' to 'Jane' dict["name"] = "Jane" print(dict) 修改词典访问值