04 2013 档案

摘要:#!/usr/bin/env python# -*- coding: utf-8 -*-## functional.py# def foo(x,y,* args): sum = x + y for n in args: sum += n return sum#apply, filter, map, reducedef main(): print foo(1,2,3,4) print apply(foo,[1,2,3,4,5]) #apply是用于调用一个函数,函数本身也作为参数 #filter(func,seq),用函数判断序列中的元素是否合条件,为True,则选中,返回符合条件的li... 阅读全文
posted @ 2013-04-25 02:23 庚武 阅读(245) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python# -*- coding: utf-8 -*-## static_method.py# # Copyright 2013 xx <xx@ubuntu># class foo(): def __init__(self): print 'this is init' @staticmethod #声明静态方法 def bar(): print 'this is foo.bar()'def decorator1(func): def wrap1(): print 'this is wrap 1 begin&# 阅读全文
posted @ 2013-04-25 01:48 庚武 阅读(206) 评论(0) 推荐(0) 编辑
摘要:官网:http://redis.io中文翻译:http://redis.cn/windows预编好的版本下载:https://github.com/dmajkic/redis/downloads客户端API:C#ServiceStack.Redis☺★HomepagedemisbellotThis is a fork and improvement of the original C# client written by Miguel De Icaza.Booksleeve☺★HomepagemarcgravellThis client was developed by Stack Excha 阅读全文
posted @ 2013-04-21 21:21 庚武 阅读(677) 评论(1) 推荐(0) 编辑
摘要:主页:https://github.com/ServiceStack/ServiceStack.TextThe Home of.NET's fastest JSON,JSVand CSV Text Serializers.ServiceStack.Text is anindependent, dependency-freeserialization library that contains all of ServiceStack's text processing functionality, including:JsonSerializerTypeSerializer (J 阅读全文
posted @ 2013-04-21 19:32 庚武 阅读(2528) 评论(0) 推荐(1) 编辑
摘要:Windows的命令是:netstat -ano | findstr "80" (注80是你想要看查看的端口号)Linux:法1:ps aux | grep httpdnetstat -anp | grep httpd法2:ps -ef | grep httpdnetstat -tunpl | gr... 阅读全文
posted @ 2013-04-21 01:19 庚武 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-04-19 18:08 庚武 阅读(148) 评论(0) 推荐(0) 编辑
摘要:Ctrl + L : 清屏。Ctrl + U : 清除光标前至行首间的所有内容。Ctrl + W : 移除光标前的一个单词Ctrl + K : 清除光标后至行尾的内容。Tab : 自动补完命令Ctrl + A : 光标移到行首。Ctrl + E : 光标移到行尾。Ctrl + F : 光标前移一个字符。Ctrl + B : 光标后移一个字符。Ctrl + C : 杀死当前进程。Ctrl + D : 退出当前 Shell。Ctrl + H : 同 backspace 键相同。Ctrl + R : 搜索之前打过的命令。Ctrl + Z : 把当前进程转到后台运行,使用' fg '命 阅读全文
posted @ 2013-04-17 16:01 庚武 阅读(189) 评论(0) 推荐(0) 编辑
摘要:COMPILE.cpp = $(CXX) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c CPPFLAGS = -g .cpp.o: $(COMPILE.cpp) $(OUPUT_OPTION) $< 阅读全文
posted @ 2013-04-15 16:16 庚武 阅读(127) 评论(0) 推荐(0) 编辑
摘要:1.安装编绎器:yum groupinstall "Development Tools"2.下载组件:http://www.tuxera.com/community/ntfs-3g-download/3.编绎安装./configuremakemake install # or 'sudo make install' if you aren't root4.挂载mount -t ntfs-3g /dev/sda1 /mnt/windows(注:其中 /dev/sda1可以通过使用root用户 fdisk -l 命令查看所有分区得到)5.启动自动挂载(可 阅读全文
posted @ 2013-04-06 16:22 庚武 阅读(656) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示