在Xcode6.0.1中,以下这两种写法都正确。 let emptyDictionary = Dictionary<String, Float>() let emptyDictionary = [String: Float]()