码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
swift中数组和字典得使用,及循环得使用方法(xcode6版本上所写代码)
//// main.swift// 数组//// Created by Mac on 15-9-9.// Copyright (c) 2015年 青苹果. All rights reserved.//import Foundation//不可变数组,用let定义即可var array:[St...
分类:编程语言   时间:2015-10-08 10:18:52    阅读次数:2040
Git Hook 同步服务器代码
参考并转载自:http://www.embbnux.com/2014/09/05/git_server_let_code_auto_deploy/http://www.chenyudong.com/archives/git-sync-manage-website.html#i1. 创建远程仓库$ m...
分类:其他好文   时间:2015-10-07 21:31:49    阅读次数:294
【Swift】学习笔记(一)——熟知 基础数据类型,编码风格,元组,主张
自从苹果宣布swift之后,我一直想了解,他一直没有能够把它的正式学习,从今天开始,我会用我的博客来驱动swift得知,据我们了解还快。1、定义变量和常量var 定义变量,let定义常量。比如:var test = 1test = 2 //变量能够改变值let test = 1test = 2 .....
分类:编程语言   时间:2015-10-07 13:22:04    阅读次数:182
ACM学习历程—HDU5475 An easy problem(线段树)(2015上海网赛08题)
Problem DescriptionOne day, a useless calculator was being built by Kuros. Let's assume that number X is showed on the screen of calculator. At first,...
分类:其他好文   时间:2015-10-06 18:01:27    阅读次数:139
罗列系统中的所有字体
let aa = UIFont.familyNames() for family in aa { NSLog("\(family)") let bb = UIFont.fontNamesForFamilyName(family as! String) ...
分类:其他好文   时间:2015-10-05 20:42:31    阅读次数:180
CF 518 D. Ilya and Escalator
Ilya got tired of sports programming, left university and got a job in the subway. He was given the task to determine the escalator load factor.Let's ...
分类:其他好文   时间:2015-10-03 16:48:47    阅读次数:233
Project Euler 78:Coin partitions
Coin partitions Let p(n) represent the number of different ways in which n coins can be separated into piles. For example, five coins can separated in...
分类:其他好文   时间:2015-10-02 22:31:20    阅读次数:260
Rust的str与String
字面量http://doc.rust-lang.org/reference.html#literals字面量是放在编译后的二进制的静态数据段的。str字面量引用let a_str = "abcdefg" let b_str = "你好世界" 使用字符串字面量创建的字符串引用,其 lifetime 是...
分类:其他好文   时间:2015-09-30 23:22:33    阅读次数:1523
Conditionals and Control Flow
Part 1: if and else Statements1. Comparisons operators>Greater than=Greater than or equal to==Equal to!=Not equal to2. if StatementsNow let's see how ...
分类:其他好文   时间:2015-09-30 21:00:02    阅读次数:179
linux shell “(())” 双括号运算符使用
linux shell “(())” 双括号运算符使用 在刚开始学习inux shell脚本编程时候,对于它的 四则运算以及逻辑运算。估计很多朋友都感觉比较难以接受。特变逻辑运算符”[]”使用时候,必须保证运算符与算数 之间有空格。 四则运算也只能借助:let,expr等命令完成。 今天讲的双括号”...
分类:系统相关   时间:2015-09-30 12:42:47    阅读次数:494
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!