博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SWIFT入门 Dictionary
阅读量:1906 次
发布时间:2019-04-26

本文共 600 字,大约阅读时间需要 2 分钟。

var menu:[String] = [“1”,“2”,“3”]

print(menu.count)

print(menu[0])

menu+=[“4”,“5”]

menu+=[“6”,“7”]

print(menu.count)

print(menu[1…3])

let constantName=1

print(constantName)

let decimalInteger=17

let binaryInteger=0b10001

let octalInteger=0o21

let hexadecimalInteger=0x11

print(decimalInteger)

print(binaryInteger)

print(octalInteger)

print(hexadecimalInteger)

var company: = [

“APPL”: “Apple Inc”,
“GOOG” : “Google Inc”,
“AMZN” : “Amazon.com Inc”,
“FB” : “Facebook Inc”
]

print(company[“APPL”]!)//if this value may become empty, and the ! may help solve the optional one back to the ordinary variable

转载地址:http://jbccf.baihongyu.com/

你可能感兴趣的文章
1.Ribbon注册服务内部调用
查看>>
2.Openfeign注册服务内部调用
查看>>
1.gateway搭建
查看>>
1.Idea或eclipse 运行项目端口被占用处理
查看>>
1.JDK1.8新特性值Optional
查看>>
1.阿里云上安装jdk8
查看>>
2.阿里云上安裝redis
查看>>
3.阿里云上安装mysql
查看>>
4.阿里云上安装nacos
查看>>
6.阿里云上安装kafka
查看>>
5.阿里云上安装zookeeper
查看>>
7.阿里云上安装RabbitMQ
查看>>
JDK8 管道 Stream 详细使用介绍
查看>>
2.启停项目脚本
查看>>
配置了阿里云安全组端口,浏览器还是不能访问的问题
查看>>
mysql出表锁表MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
查看>>
cron表达式基础配置知识
查看>>
lombok基础使用
查看>>
jar启停服务
查看>>
1.docker基础概念
查看>>