Swift:EXC_BAD_ACCESS错误访问字典上的键

时间:2018-08-13 18:23:59

标签: swift dictionary

游乐场,Xcode 9.4.1

let openersToClosers: [Character: Character] = ["(": ")","[": "]","{": "}"]
print("openersToClosers.keys : \(openersToClosers.keys)")

let keys = openersToClosers.keys
print("keys : \(keys)")

我遇到一个错误: enter image description here

0 个答案:

没有答案