「Swift入門」複数keyでdictionaryを定義するサンプル
サンプルコード
let cft = [ "userid": "10021", "username": "yamada", "city": "yokohama", "age":30 ] cft["userid"] cft["username"] cft["age"]
Coding Changes the World
サンプルコード
let cft = [ "userid": "10021", "username": "yamada", "city": "yokohama", "age":30 ] cft["userid"] cft["username"] cft["age"]