📜  创建字典 swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.529000             🧑  作者: Mango

代码示例1
var someDict:[String:Int] = ["One":1, "Two":2, "Three":3] // creates dictionary
var someVar = someDict["One"] // accesses the value of key "One"

print("The value of key = One is \(someVar)")