【发布时间】:2017-09-06 07:29:25
【问题描述】:
我有一本这样的字典:
var dictionary: [String: String] = ["one": "Value 1", "two": "value2", "two": "value3", "one": "value4"]
如何在 Swift 3.0 中从字典中找到不同的键???
【问题讨论】:
-
Swift 字典不能有重复的键。只会保留其中一个。
-
developer.apple.com/library/content/documentation/Swift/…: "...每个值都与一个唯一键相关联,..."
-
@kennytm "Swift 字典不能有 ..." 抱歉????
标签: swift dictionary