let myDictionary: [String: [Int]] = ["Hello": [1,2,3],"World": [4,5,6]]
实际上,如果您分配了初始值,则甚至不需要显式类型声明.它可以简单到:
let myDictionary = ["Hello": [1,6]]
要使用该值:
println(myDictionary["Hello"][0]) // Print 1println(myDictionary["World"][0]) // Print 4