摘要:
命名规则中最重要的就是Create Rule,官方说明如下:There is an important distinction between Get, and Copy and Create, in names of functions that return values. If you use... 阅读全文
摘要:
数组的声明通过initailizer初始化,注意这里的[Double]仅仅是Array的缩写:在数组中添加元素的两种方式添加元素移除元素移除元素的时候,后面的元素会自动向前移动填补gap数组遍历除了普通的for in 循环遍历,也可以用全局的enumerate函数来获取遍历中元素的序号字典:三种遍历... 阅读全文