Your simple good Deeds can save you but your GREED can kill you. This has happened before. This greedy person lived a miserable life just for the gree
分类:
其他好文 时间:
2016-02-01 22:33:08
阅读次数:
204
题意:每条边过且只过一次,问至少要画几笔才能全部边都经过。孤立的点忽视。#include using namespace std;const int M=100000+10;int gree[M];int father[M];int rank1[M];int save[M];bool used[M]...
分类:
其他好文 时间:
2015-09-05 12:24:40
阅读次数:
149
grep简介
grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、egrep和fgrep。egrep和fgrep的命令只跟grep有很小不同。egrep是grep的扩展,支持更...
分类:
其他好文 时间:
2015-05-10 11:33:18
阅读次数:
152
Sed简介
sed是一种在线编辑器,它一次处理一行内容。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。接着处理下一行,这样不断重复,直到文件末尾。文件内容并没有改变,除非你使用重定向存储输出。Sed主要用来自动编辑一个或多个文件;简化对文件的反复操作;编写转换程序等。以下介绍的是Gnu...
分类:
其他好文 时间:
2015-05-10 11:31:04
阅读次数:
185
当时一看SendMessage函数,瞬间感觉好高大上,但是仔细研究了一下,其实属于一种语法糖。我们完全可以用一种更加直接的方式,但是可能需要多些点儿字母:例如我们需要在另一个脚本中获得一个游戏对象goInvokeObj的Greet.cs脚本的一个Public方法 public void Gree.....
分类:
编程语言 时间:
2015-05-03 13:20:58
阅读次数:
219
使用java枚举代替字符串或静态变量。
?1.简单使用
颜色枚举类:
public enum ColorEnum {
RED, BLACK, GREE, BLUE
}
调用:
public static void main(String[] args) {
System.out.println(ColorEnum.RED.toString());
System.out.p...
分类:
编程语言 时间:
2015-04-28 11:46:38
阅读次数:
107
点击任何处效果图:点击“取消”或“退出”的效果图:工程图:代码:RootViewController.h#import //加入头文件#import "LTBounceSheet.h"//define文件#define color [UIColor colorWithRed:0/255.0 gree...
分类:
其他好文 时间:
2014-12-05 17:10:50
阅读次数:
204
java中主要有3个类用于日期格式转换 DateFormat 、SimpleDateFormat、Calendar1.SimpleDateFormat该类是DateFormat的子类,一般日期的格式化都是实例化该类实现具体应用如下package com.gree.java;import java.....
分类:
编程语言 时间:
2014-11-13 20:32:06
阅读次数:
120
导入jxl.jar包, 代码如下:package com.gree;import java.io.IOException;import java.io.OutputStream;import java.io.PrintWriter;import java.io.UnsupportedEncoding...
分类:
编程语言 时间:
2014-11-03 14:21:49
阅读次数:
234
1.安装flaskpip install flask2.安装geventpip install gevent3.安装gunicornpip install gunicorn版本信息例如以下:[root@rs-2 ~]# pip listFlask (0.10.1)gevent (1.0.1)gree...
分类:
其他好文 时间:
2014-10-12 11:02:38
阅读次数:
279