一、简介REmoteDIctionaryServer(Redis),redis是一个基于内存的单机key/value系统,类似memcached,但支持value为多种形式,包括:字符串(string)、链表(list)、集合(set)、有序集合(sortedset)和hashtable二、特点1优...
分类:
其他好文 时间:
2014-07-22 23:14:34
阅读次数:
462
创建一个类Alt+Shift+N,C,输入Demo,回车创建类属性按3次下方向键,回车,输入String
name;,回车创建构造器Alt+Shift+S,O,回车创建getter/setterAlt+Shift+S,R,空格,回车创建toString方法Alt+Shift+S,S,回车创建main...
分类:
系统相关 时间:
2014-07-22 23:13:57
阅读次数:
503
有人说:virtualenv、fabric 和 pip 是 pythoneer
的三大神器。不管认不认同,至少要先认识一下,pip现在倒是经常用到,virtualenv第一次听说,不过,总得尝试一下吧。一、安装pip install
virtualenv因为我已经安装了pip,那么就直接用pip来安...
分类:
编程语言 时间:
2014-07-22 23:13:55
阅读次数:
477
import java.security.MessageDigest;import
java.util.*;public class Hello2{ public static void main(String[] args) throws
Exception{ Random r = new Ran...
分类:
其他好文 时间:
2014-07-22 23:13:33
阅读次数:
354
Reverse Words in a
String题目链接:http://oj.leetcode.com/problems/reverse-words-in-a-string/ Given an
input string, reverse the string word by word. F...
分类:
其他好文 时间:
2014-07-22 23:13:32
阅读次数:
309
public class DoTXT { // 定义成员变量:路径,文件对象,临时变量
private String path; // 文件路径 private File f; private FileReader fr; // 所需文件流对象
private File...
分类:
其他好文 时间:
2014-07-22 23:13:15
阅读次数:
300
最大的Qt4程序群(KDE4)采用cmake作为构建系统Qt4的python绑定(pyside)采用了cmake作为构建系统开源的图像处理库
opencv 采用cmake 作为构建系统...看来不学习一下cmake是不行了,一点一点来吧,找个最简单的C程序,慢慢复杂化,试试看:例子一单个源文件
ma...
分类:
其他好文 时间:
2014-07-22 23:13:14
阅读次数:
423
public class ToLog { public static void
main(String[] args) throws Exception { //准备日志文件 File f = new File("log.txt");
if(!f.ex...
分类:
其他好文 时间:
2014-07-22 23:12:54
阅读次数:
300
Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letters fo...
分类:
其他好文 时间:
2014-07-22 23:11:32
阅读次数:
388
原题地址:http://oj.leetcode.com/problems/insertion-sort-list/题意:对链表进行插入排序。解题思路:首先来对插入排序有一个直观的认识,来自维基百科。
代码循环部分图示:代码:class Solution:# @p...
分类:
编程语言 时间:
2014-07-22 23:11:32
阅读次数:
411