码迷,mamicode.com
首页 >  
搜索关键字:playground    ( 265个结果
The-Swift-2.0-Programming-Language-playground
本人分享到github上整理的swift 2.0的playground。地址https://github.com/mengxiangyue/The-Swift-2.0-Programming-Language-playground 对应最新发布《The Swift Programming Language》Swift 2.0 版本一书中内容。这些Playground基本是书中知识点的一个总结,如果...
分类:编程语言   时间:2015-06-29 06:34:20    阅读次数:130
MarkDown编辑器推荐
MarkDown编辑器推荐最近有很大朋友私信我,询问有哪些比较好的Markdown的编辑器,这里做一个汇总哈。非常赞的在线编辑器stackedit https://stackedit.io/editormarkdown-live-editor http://jrmoran.com/playground/markdown-live-editor/老牌编辑器markdownpad http://m...
分类:其他好文   时间:2015-06-28 23:05:59    阅读次数:221
SWIFT中计算两个日期间隔多少小时
SWIFT中如何计算两个日期间隔多少个小时,其实几句代码就可以搞定了,Very Easy,在Playground内输入以下代码var date1 = "2015-06-26 8:15:10"var dateformatter = NSDateFormatter()dateformatter.date...
分类:编程语言   时间:2015-06-26 12:46:01    阅读次数:196
swift 2.0基本语法
下面为一些swift 2.0 的基本语法,写在playground中,每次swift版本跟新的时候,打开瞅瞅,就可以对比出哪里发生了修改。内容包括:01变量&常量 02分支 03循环 04字符串 05数组 06字典 07函数01变量&常量//: Playground - noun: a ...
分类:编程语言   时间:2015-06-22 22:09:17    阅读次数:179
【swift总结】字符串和字符
声明字符串var str = "Hello, playground" //声明一个字符串 var emptyStr = ""; //声明一个空的字符串 var emptyStr1 = String(); //相等于上面的那个str.isEmpty; //判断str是不是为空false emptyStr.isEmpty; //true字符串连接var str1 = "hel...
分类:编程语言   时间:2015-06-22 16:33:04    阅读次数:333
【swift-总结】基础使用
声明变量与常量//使用var声明一个变量 var str = "Hello, playground" str = "Hello world";//使用let声明一个常量 let str1 = "我是帅哥"; str1 = "我不是帅哥"; //这句话会报错let name = "我是帅哥"; //声明一个常量,类型自动推断为String类型 var age:Int = 20; //声明一个变量...
分类:编程语言   时间:2015-06-20 17:13:04    阅读次数:113
swift Switch
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"var a = 5switch a { case 4: println("yes") default: p...
分类:编程语言   时间:2015-06-18 00:37:25    阅读次数:249
窥探Swift之基本数据类型
在上一篇博客“窥探Swift编程之在Playground上尽情的玩耍”中介绍了如何使用Playground来学习Swift语言。本篇博客就使用Playground来窥探Swift语言。千里之行始于足下,当然了,除非你是坐的高铁或者飞机。还是那句话从基础开始吧,本篇博客主要介绍一下Swift的基本.....
分类:编程语言   时间:2015-06-15 12:41:06    阅读次数:147
ACM学习历程—FZU 2144 Shooting Game(计算几何 && 贪心 && 排序)
DescriptionFat brother and Maze are playing a kind of special (hentai) game in the playground. (Maybe it’s the OOXX game which decrypted in the last p...
分类:编程语言   时间:2015-06-01 22:20:44    阅读次数:236
FZU OJ 2110 Star (计算几何)
Problem 2110 Star Accept: 585    Submit: 1731 Time Limit: 1000 mSec    Memory Limit : 32768 KB  Problem Description Overpower often go to the playground with classmates. They play and chat o...
分类:其他好文   时间:2015-05-22 00:39:33    阅读次数:182
265条   上一页 1 ... 17 18 19 20 21 ... 27 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!