//// 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
参考并转载自: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得知,据我们了解还快。1、定义变量和常量var 定义变量,let定义常量。比如:var test = 1test = 2 //变量能够改变值let test = 1test = 2 .....
分类:
编程语言 时间:
2015-10-07 13:22:04
阅读次数:
182
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
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
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
字面量http://doc.rust-lang.org/reference.html#literals字面量是放在编译后的二进制的静态数据段的。str字面量引用let a_str = "abcdefg" let b_str = "你好世界" 使用字符串字面量创建的字符串引用,其 lifetime 是...
分类:
其他好文 时间:
2015-09-30 23:22:33
阅读次数:
1523
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 “(())” 双括号运算符使用 在刚开始学习inux shell脚本编程时候,对于它的 四则运算以及逻辑运算。估计很多朋友都感觉比较难以接受。特变逻辑运算符”[]”使用时候,必须保证运算符与算数 之间有空格。 四则运算也只能借助:let,expr等命令完成。 今天讲的双括号”...
分类:
系统相关 时间:
2015-09-30 12:42:47
阅读次数:
494