码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
<Python> Random Tricks
1. with-as (context-manager) with function() as instance: #do something Codes above do the following: Let instance = function(), where function return ...
分类:编程语言   时间:2016-09-01 22:54:56    阅读次数:171
hdu 1004
Let the Balloon Rise Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 107810 Accepted Submission(s ...
分类:其他好文   时间:2016-09-01 20:09:06    阅读次数:155
邻家swift初长成
import Foundation let str = "123" var message = "tuqiushuang , str" message+="t"//字符追加 if str.isEmpty||200>90 { print("hao") } if str==message&&100>90 ...
分类:编程语言   时间:2016-09-01 18:17:29    阅读次数:143
Swift-懒加载使用
// 懒加载 lazy var tableView : UITableView = { let tempTableView = UITableView() return tempTableView }() ...
分类:编程语言   时间:2016-09-01 17:54:45    阅读次数:204
swift常用代码片段
个人在写项目中常常用到的一些代码片段,会不断更新 /** 获取屏幕宽度 - returns: 宽度 */ func deviceWidth() -> (CGFloat) { let width = UIScreen.mainScreen().bounds.size.width return widt ...
分类:编程语言   时间:2016-08-31 18:57:18    阅读次数:265
Swift中自动生成中间带小头像的二维码
//MARK: -传进去字符串,生成二维码图片 private func creatQRCodeImage(text: String, sizeH:CGFloat) -> UIImage{ //text是二维码要带入的信息,sizeH是二维码的高度 //创建滤镜 let filter = CIFil ...
分类:编程语言   时间:2016-08-31 12:04:01    阅读次数:200
Unity Draw Call 初研究
前言:百度了几个博客讲解unity draw call的文章,不明觉厉,我应该先自己去unity中试试先,不然看着一脸懵B,let‘s go! 一:光照因素(光照可能增加一倍的DC) 二:material因素(一个mat增加至少一次DC) 三:mesh顶点数量(cube顶点数:24 sphere顶点 ...
分类:编程语言   时间:2016-08-30 21:25:25    阅读次数:211
ES6学习笔记之let/const
在javascript中,我们都知道使用var来声明变量。javascript是函数级作用域,函数内可以访问函数外的变量,函数外不能访问函数内的变量。 函数级作用域会导致一些问题就是某些代码块内的变量会在全局范围内有效,这我们是非常熟悉的: 在es6中增加了let(变量)和const(常量)来声明变 ...
分类:其他好文   时间:2016-08-30 12:05:25    阅读次数:222
HDU 1028 简单动态规划
"Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says. "The second problem is, given an positiv ...
分类:其他好文   时间:2016-08-29 17:47:26    阅读次数:135
swift-分支语句
// switch的基本用法 // 1>switch后面的()可以省略 // 2>case中语句结束后不需要跟break // 3>在case中定义局部变量不需要跟{} // 4>如果想要case穿透,则在case语句结束时跟:fallthrough let sex = 0 switch sex { ...
分类:编程语言   时间:2016-08-28 22:10:36    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!