SWIFT
bddzz
居安思危,思则有备,有备无患,敢以此规。
展开
-
Swift基础语法1
苹果提供了学习swift的非常好的工具就是Xcode中的playground。使用方法为如图: 之后就能够使用了,并且是实时结果显示 var str = "Hello, playground" print("hello word") print(str) let myTest = 12原创 2016-09-13 16:53:21 · 435 阅读 · 0 评论 -
Swift基础语法2
//区间运算符... 和.. for icount in 1...5{ print(icount) } for icount in 1..5{ print(icount) } //字符串范围也可以使用区间运算符 //字符串截取 let words = "baidu.com" //不原创 2016-09-13 16:58:18 · 412 阅读 · 0 评论