【发布时间】:2014-06-17 13:24:27
【问题描述】:
由于某种原因,我无法使这个表达式起作用:
let expandedBio: Dictionary<String,AnyObject> = ["name":"Saurabh", "profession":"developer", "language":"java", "employed": true]
if let employed : AnyObject = expandedBio["employed"] {
println("\(expandedBio[\"name\"]) is not available")
}
如何输出println 语句?我得到了错误
Unexpected "" character error in string interpolation
我该怎么做?
【问题讨论】:
-
这个问题在swift 2.1中解决了
标签: dictionary swift