//: Playground - noun: a place where people can playimport UIKit/*:for循环* 基本用法和OC一致* 条件表达式必须是bool类型的值* 条件表达式的()可以省略* 在OC中如果{}中只有一条语句, 那么{}可以省略, 而Swift...
分类:
编程语言 时间:
2015-11-06 20:52:02
阅读次数:
252
//: Playground - noun: a place where people can playimport UIKit/*:函数* 格式func 函数名称(形参名称1: 形参类型, ...) -> 返回值类型{ // 逻辑代码}* 没有参数没有返回值* 没有参数有返回值* 有参数没有返回....
分类:
编程语言 时间:
2015-11-06 20:49:38
阅读次数:
216
//: Playground - noun: a place where people can playimport UIKit/*:字典* 和OC的区别* 1. {} 替换为 []* 2. 去掉所有@* 可变字典 var* 不可变字典 let*/var dict = ["name": "lnj"....
分类:
编程语言 时间:
2015-11-06 20:47:44
阅读次数:
266
原题:Implement an algorithm to determine if a string has all unique characters What if you can not use additional data structures?解题思路:1把所有字符的asc2 码转化为数...
分类:
其他好文 时间:
2015-11-06 19:21:49
阅读次数:
197
电脑重装,环境重配遇到了下边提示的问题,Studio 和?TortoiseSVN ?均使用最新版本发现报如下错误: Can‘t use Subversion command line client: E:\Program Files\TortoiseSVN\bin\svn.exe ? ? ? ? ?Sub...
分类:
移动开发 时间:
2015-11-06 18:08:52
阅读次数:
213
Autoprefixer根据 Can I use 的 数据,按需给无前缀代码自动加厂商前缀。输入:a { display: flex;}输出:a { display: -webkit-box; display: -webkit-flex; display: -ms-flexb...
分类:
Web程序 时间:
2015-11-06 17:39:42
阅读次数:
259
The simple thread example we showed above was useful in showing how threads arecreated and how they can run in different orders depending on how the s...
分类:
其他好文 时间:
2015-11-06 14:37:32
阅读次数:
222
up vote20down voteacceptedYou can specify a username usingsvn co --username your_name https://svn.server.com/repository/trunkand the password should b...
分类:
Web程序 时间:
2015-11-06 10:53:16
阅读次数:
155
1、错误描述Caused by: java.sql.SQLException: Couldn't perform the operation commit: You can't perform any operations on this connection. It has been
automatically closed by Proxool for some reason (see l...
分类:
数据库 时间:
2015-11-06 09:45:32
阅读次数:
478
1、错误描述The last packet successfully received from the server was 76,997 milliseconds ago. The last packet sent successfully to the server was 78,995
milliseconds ago.
at sun.reflect.NativeConstruct...
分类:
编程语言 时间:
2015-11-06 09:45:00
阅读次数:
371