#coding:utf-8name = 'Zed A. Shaw'age = 8.123 # not a lieheight = 74 # inchesweight = 180 # lbseyes = 'Blue'teeth = 'White'hair = 'Brown'print "His nam
分类:
编程语言 时间:
2016-02-15 14:49:23
阅读次数:
171
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". Update (2015-02-12):For C pr
分类:
其他好文 时间:
2016-02-12 12:46:41
阅读次数:
159
题目: Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". 思路: 利用两个stack,一个表示单词,一个表
分类:
其他好文 时间:
2016-02-11 17:59:00
阅读次数:
209
DNA序列 题目大意:给你m串字符串,要你找最长的相同的连续字串 这题暴力kmp即可,注意要按字典序排序,同时,是len<3才输出no significant commonalities 1 #include <iostream> 2 #include <functional> 3 #include
分类:
其他好文 时间:
2016-02-05 01:21:10
阅读次数:
294
blackView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];
分类:
其他好文 时间:
2016-02-01 18:47:30
阅读次数:
133
枚举是多例设计 要求构造方法私有化 枚举中定义的构造方法不能用public 枚举对象必须放在首行,随后才可以定义属性,构造方法,普通方法 package cn; enum Color{ //定义好了枚举类 RED("红色") ,GREEN ("绿色"),BLUE("蓝色") ; //枚举对象ding
分类:
其他好文 时间:
2016-01-30 18:04:06
阅读次数:
194
1:创建Array 1:var colors=new Array 2:var colors=Array(3) 3:var colors=[1,2,3] 2:数组转换字符串( 默认以逗号分隔) eg var colors=["red","green","blue"]; 1:colors.toStrin
分类:
Web程序 时间:
2016-01-29 16:27:52
阅读次数:
166
1 #import "ViewController.h" 2 3 @interface ViewController () 4 @property (strong,nonatomic) UIView *red; 5 @property (strong,nonatomic) UIView *blue;
分类:
其他好文 时间:
2016-01-29 00:21:03
阅读次数:
317
CSS的伪类选择器常用的是link/visited/hover/active,分别对应未访问、已访问过、鼠标悬停、鼠标按下时的样式,常用于链接,使用时要按此顺序依次写CSS,不能乱1 a:link{background-color:blue;} //未访问前深蓝色2 a:visit...
分类:
Web程序 时间:
2016-01-27 12:34:42
阅读次数:
227
数组去重的几种快捷方式:1.//创建一个包含重复值的,一共四个元素的数组$array=array('green','blue','orange','blue');//翻转数组,你将会得到唯一键值的数组array('green'=>0,'blue'=>1,'orange'=>2);$array=arr...
分类:
编程语言 时间:
2016-01-27 12:21:55
阅读次数:
187