iOS开发
安静的偏执
欢迎关注我的公众号:文说点滴
展开
-
Swift学习笔记之变量与常量声明
1. 代码示例:import Cocoa//定义一个常量let test = "这是一个常量"print(test)//定义一个变量var newVar = "这是一个变量"print(newVar)newVar = "更新后的变量值"print(newVar)//指定变量类型var num:Double = 20print(num)//字符串拼接print(原创 2016-04-05 02:37:43 · 494 阅读 · 0 评论 -
Swift学习笔记之基本数据类型-整形,浮点,布尔
1. 代码示例://: Playground - noun: a place where people can playimport Cocoa//无符号整型let min = UInt8.minprint(min)let max = UInt8.maxprint(max)//有符号整型let minValue = Int8.minprint(minValue)l原创 2016-04-06 00:52:44 · 1140 阅读 · 0 评论 -
Swift学习笔记之基本数据类型-元组
1. 代码示例:原创 2016-04-06 01:01:58 · 619 阅读 · 0 评论 -
Swift学习笔记之基本数据类型-基本运算符
1. 代码示例原创 2016-04-10 01:19:53 · 453 阅读 · 0 评论 -
Swift学习笔记之基本数据类型-数组与字典
1. 代码示例//: Playground - noun: a place where people can playimport Cocoa//声明数组var myList = ["hello" , 3]//打印数组中的值for item in myList { print(item)}print("\n")//打印数组中指定的值print("数组中第二原创 2016-04-10 11:44:46 · 629 阅读 · 0 评论 -
swift学习笔记之基本数据类型-控制流
1.原创 2016-04-10 14:12:55 · 479 阅读 · 0 评论