「Swift入門」複数keyでdictionaryを定義するサンプル

サンプルコード

let cft = [
    "userid": "10021",
    "username": "yamada",
    "city": "yokohama",
    "age":30
]
 
cft["userid"] 
cft["username"] 
cft["age"] 

 

Swift

Posted by arkgame