请注意,KouKou并不支持低于IE8的浏览器,为了获得最佳效果,请下载最新的浏览器,推荐下载 Chrome浏览器

Linux下完美使用find+grep实现全局代码搜索

6-04 3,159 views

首先,举个最简单的例子,在阅读代码过程中我们经常需要查看某个函数的定义,但是一般开源项目代码规模都相当庞大,此时你就可以如下使用find+grep轻松查找...
阅读全文 0

python中打开关闭文件的方法

6-01 2,837 views

"python写文件" try: with open('123.txt','r') as data: print('It is ..',file=data) except IOError as err: print('File ...
阅读全文 0

python递归打印多维列表

6-01 3,510 views

递归打印多维列表 __author__ = 'Administrator' cast = ['a','b','c','d',['aa','bb','cc',['aaa','bbb','ccc']]] print(cast) def print_lol(the_list): ...
阅读全文 0

python中获取python版本号的方法

6-01 4,485 views

python中获取python版本号的方法 "方法一" #!/usr/bin/python import platform print platform.python_version() "方法二" #!...
阅读全文 0

好听纯音乐—— July—My Soul

6-01 5,822 views

阅读全文 1

好听纯音乐——July – Rhapsody.mp3

6-01 3,665 views

阅读全文 0

在Linux CentOS 6.6上安装Python 2.7.9

5-30 3,528 views

CentOS 6.6自带的是Python 2.6.6,而编译llvm需要Python 2.7以上。 checking for python... /usr/bin/python checking for python >= 2.7... not found ...
阅读全文 0

linux设置python环境变量

5-30 4,041 views

添加环境变量主要是在/etc/profile中 例如,在/usr/local/下安装了python2.7 因为系统默认是2.4,所以 #python Python 2.4.3 (#1, Sep  3 2009, 15:37:37) [G...
阅读全文 0

php自动获取字符串编码函数mb_detect_encoding

5-28 3,215 views

当在php中使用mb_detect_encoding函数进行编码识别时,很多人都碰到过识别编码有误的问题,例如对与GB2312和UTF- 8,或者UTF-8和GBK(这里主要是对于cp936的判...
阅读全文 0

pygame 做浮动广告~

5-27 3,753 views

# -*- coding:utf-8 -*- background_image_filename = 'sushiplate.jpg' sprite_image_filename = 'fugu.png' import pygame from pygame.locals import * f...
阅读全文 0