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

python中打开关闭文件的方法

6-01 2,606 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,233 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,190 views

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

好听纯音乐—— July—My Soul

6-01 5,227 views

阅读全文 1

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

6-01 3,194 views

阅读全文 0

在Linux CentOS 6.6上安装Python 2.7.9

5-30 3,192 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 3,550 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 2,843 views

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

pygame 做浮动广告~

5-27 3,410 views

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

python 文件打包成EXE

5-27 5,730 views

你是否有這樣的煩腦,用Python寫了一個很酷的程式,傳給你同學看卻因為他沒有裝Python直譯器,為了執行你這個小程式,他得安裝直譯器才能執行,更麻煩的還有...
阅读全文 0