//: Playground - noun: a place where people can play import UIKit //Raw Value enum Month: String{ case January = "Value_January" case February = "Valu... ...
分类:
移动开发 时间:
2017-09-11 21:18:33
阅读次数:
256
1 import UIKit 2 3 var str = "Hello, playground" 4 5 var myVariable = 42 6 myVariable = 50 7 let myConstant = 42 8 9 let implicitInteger = 70 10 let i... ...
分类:
编程语言 时间:
2017-08-22 19:44:07
阅读次数:
171
PlayGround。http://playground.tensorflow.org 。教学目的简单神经网络在线演示、实验图形化平台。可视化神经网络训练过程。在浏览器训练神经网络。界面,数据(DATA)、特征(FEATURES)、神经网络隐藏层(HIDDEN LAYERS)、层中连接线、输出(OU ...
分类:
其他好文 时间:
2017-08-20 12:26:48
阅读次数:
245
Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded. In the ...
分类:
其他好文 时间:
2017-07-28 14:15:29
阅读次数:
223
//: Playground - noun: a place where people can play import UIKit //多返回值函数 func countss(string: String) -> (vowels: Int,consonants: Int,others: Int) { ...
分类:
其他好文 时间:
2017-07-26 19:20:13
阅读次数:
139
//: Playground - noun: a place where people can play import Cocoa var str1 = "供选链接和强制拆包的不同。" class Person { var residence: Residence?//供选连接 } class Re ...
分类:
其他好文 时间:
2017-07-24 13:07:39
阅读次数:
142
类(Class)和结构体(Struct)区别 1. 内存管理方式不一样, 类引用类型, 分配在堆上。 结构体值类型,分配在栈上。 2. 类, 有析构。 结构体不能有析构, playground中测试直接卡死。 3. 结构体构造函数, 会自动生成带参数的构造器。类不会对有初始化赋值的属性, 生成带参数 ...
分类:
编程语言 时间:
2017-06-22 00:23:34
阅读次数:
317
题目描述 Description Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled ...
分类:
其他好文 时间:
2017-06-21 18:54:46
阅读次数:
251
//: Playground - noun: a place where people can play import Cocoa class Person { var residence: Residence?//供选连接 } class Residence { var rooms = [Room ...
分类:
其他好文 时间:
2017-06-11 16:28:34
阅读次数:
164
// Playground - noun: a place where people can play import UIKit var age=100 //假设年龄不大于50的就会在这里断言,和之前的OC一样的 assert(age>50,"age must >50") //能够用a..b标识a到 ...
分类:
编程语言 时间:
2017-05-28 11:02:19
阅读次数:
164