码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
Day4 String Change Too Much ,so delay learning the string
// **Day4 // **String Range //var str = "hello world i'm glad to see your achievement world" //let number = str.characters.count //let str2 = "yes my ...
分类:其他好文   时间:2016-04-03 12:58:12    阅读次数:184
Swift变量名的一种玩法
大熊猫猪·侯佩原创或翻译作品.欢迎转载,转载请注明出处. 如果觉得写的不好请多提意见,如果觉得不错请多多支持点赞.谢谢! hopy ;) 是的,Swift的变量名可以用任何合法的Unicode字符,这意味着作为龙的传人,我们没必要这样写:let myName = "hopy"而是可以这样写:let 我的名字 = "大熊猫hopy " print(我的名字)因为Emoji属于Unicode,所以...
分类:编程语言   时间:2016-04-03 10:33:50    阅读次数:254
Swift 基础语法
一、变量和常量 定义 let 定义常量,一经赋值不允许再修改 var 定义变量,赋值之后仍然可以修改 自动推导 Swift能够根据右边的代码,推导出变量的准确类型 通常在开发时,不需要指定变量的类型 如果要指定变量,可以在变量名后使用:,然后跟上变量的类型 重要技巧:Option + Click 可 ...
分类:编程语言   时间:2016-04-03 00:06:32    阅读次数:236
poj 2533 Longest Ordered Subsequence(LIS)
Description A numeric sequence of ai is ordered ifa1 <a2 < ... < aN. Let the subsequence of the given numeric sequence (a1,a2, ..., aN) be any sequenc ...
分类:其他好文   时间:2016-04-02 22:51:28    阅读次数:184
Day3 String using Rules
// **Day3 // **for number in 1...10 //let closedRangeNumber = ["t","w","w"] //for i in 0..<closedRangeNumber.count //{ // print(closedRangeNumber[i]) ...
分类:其他好文   时间:2016-04-02 22:51:20    阅读次数:215
Swift的关键字
在声明中使用关键字 let :声明一个常量 var :声明一个变量 class :声明一个类 static :静态的 deinit :反初始化方法?析构方法 init :构造方法?初始化方法 enum :枚举 extension :扩展 给对象增加方法 func :声明一个函数 import :导入 ...
分类:编程语言   时间:2016-04-02 22:48:51    阅读次数:403
Codeforces 620C EDU C.Pearls in a Row ( set + greed )
C. Pearls in a Row There are n pearls in a row. Let's enumerate them with integers from 1 to n from the left to the right. The pearl number i has the ...
分类:其他好文   时间:2016-04-02 14:45:51    阅读次数:155
Day1 (let and var)/(String,Int,Float,Double)/(Tuples,contains: array,dictionary)
let secondSystem:Int = 0b10001 let eightSystem:Int = 0o21 let tenSystem:Int = 17 let sixthSystem:Int = 0x11 // summary: 1.u need insert a "Enter" behi ...
分类:其他好文   时间:2016-04-01 21:57:47    阅读次数:135
Day2 (operation)/(optional Value of double eye Value)
let secondSystem:Int = 0b10001 let eightSystem:Int = 0o21 let tenSystem:Int = 17 let sixthSystem:Int = 0x11 // summary: 1.u need insert a "Enter" behi ...
分类:其他好文   时间:2016-04-01 21:57:25    阅读次数:200
vim 脚本之快速打印log
" zsl_log.vim" Version: 1.0if exists("g:zsl_loaded_log") || &cp || v:version < 700 finishendiflet g:zsl_loaded_log = 1"基础函数function AddLog() let zslin ...
分类:系统相关   时间:2016-04-01 06:29:37    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!