let charA:Character = "a" switch charA { case "A": print("The letter a") break case "b": print("The ...
分类:
编程语言 时间:
2016-01-02 00:50:19
阅读次数:
202
Let me show you the WeChat version first. It is 6.3.What will happen to WeChat deleted chat messages? Take a look at "Blocks containing deleted data" ...
分类:
微信 时间:
2016-01-01 11:05:04
阅读次数:
408
This past weekend I readJoe Armstrong’s paper on the history of Erlang. Now,HOPLpapers in general are like candy for me, and this one did not disappoi...
分类:
其他好文 时间:
2015-12-30 19:16:35
阅读次数:
189
Designing fault tolerant systems is extremely difficult. You can try to anticipate and reason about all of the things that can go wrong with your soft...
分类:
其他好文 时间:
2015-12-30 19:13:41
阅读次数:
183
数组可以存放任意类型,初始化时候的类型 决定了数组后面可以添加什么类型的元素let 不可变数组let arrayC = [1,2,3,4,5,6,7]var 可变数组var arrayM = [1,2,3,4,5,6,7]数组元素个数print(arrayC.count)通过下标访问数组元素prin...
分类:
编程语言 时间:
2015-12-29 14:28:22
阅读次数:
193
import UIKitclass ViewController: UIViewController { @IBOutlet weak var wc: UIWebView! override func viewDidLoad() { super.viewDidLoad() let url = NSU...
分类:
移动开发 时间:
2015-12-29 12:27:27
阅读次数:
154
??原创文章,欢迎转载。转载请注明:关东升的博客 Swift 1.x的错误处理模式存在很多弊端,例如:为了在编程时候省事,给error参数传递一个nil,或者方法调用完成后不去判断error是否为nil,不进行错误处理。let contents = NSString(contentsOfFile: filePath,
Êencoding: NSUTF8StringEncodi...
分类:
编程语言 时间:
2015-12-28 10:34:49
阅读次数:
208
原创文章,欢迎转载。转载请注明:关东升的博客Swift 1.x的错误处理模式存在很多弊端,例如:为了在编程时候省事,给error参数传递一个nil,或者方法调用完成后不去判断error是否为nil,不进行错误处理。let contents = NSString(contentsOfFile: fil...
分类:
编程语言 时间:
2015-12-28 10:21:38
阅读次数:
216
2015年12月26日是个特别的日子,我的Python成之路迈出第一步。见到了心目中的Python大神(Alex),也认识到了新的志向相投的伙伴,非常开心。 尽管之前看过一些Python的视频、书,算是有一点基础。但在这里我要保持空杯心态,一切从头开始。好了不多说,Let's Python!!...
分类:
编程语言 时间:
2015-12-27 13:24:02
阅读次数:
222
在git:https://github.com/bling/vim-airline/tree/master/autoload/airline/themes上看了下,一共有内置的这些主题,可以直接使用,方法是在.vimrc中写:let g:airline_theme="badwolf",或者在vi.....
分类:
系统相关 时间:
2015-12-27 12:04:32
阅读次数:
788