
python
文章平均质量分 63
ThirstyBlue
这个作者很懒,什么都没留下…
展开
-
python paste deploy
转载:python paste deploy 介绍 http://blog.youkuaiyun.com/sonicatnoc/article/details/6539716转载 2012-08-02 16:33:20 · 825 阅读 · 0 评论 -
Python - example: check prefix of string src
cat src.txt a b c ab abc tty t tt bcd bc abcde abcd cat prefix.py file = open('/home/bin/src.txt') wlist = file.readlines() wsrc = [] for key in wlist: key = key[0:-1]原创 2012-04-05 23:27:57 · 498 阅读 · 0 评论 -
Python - refector: passwd src
import sys, getpass, crypt, spwd def login(): current_pw = getpass.getpass("Pls input current password:") crypted_pw = spwd.getspnam(username)[1] check_curr_pw = (crypt.crypt(current原创 2012-04-05 23:32:57 · 585 阅读 · 0 评论 -
Python -- pyc, pyo
[转自] http://hi.baidu.com/hevensun/blog/item/39a88f3d1ace091abaa167f8.html Python源代码编译成 pyc pyo 什么是pyc文件 2011-08-10 8:58 pyc是一种二进制文件,是由py文件经过编译后,生成的文件,是一种bytecode,py文件变成pyc文件后,加载的速度有所提高,而且pyc是转载 2011-12-21 15:20:21 · 602 阅读 · 0 评论 -
Python learning useful link
1. python dev guide page, backup for myself: http://docs.python.org/devguide/原创 2011-12-21 10:42:08 · 649 阅读 · 0 评论 -
Python -- cpython
[转自] http://blog.donews.com/lemur/archive/category/ http://blog.youkuaiyun.com/balabalamerobert/article/details/567580 CPython源码剖析系列 Python源码剖析[1] —— 编译Python Python源码剖析[2] —— 对转载 2011-12-21 15:37:50 · 627 阅读 · 0 评论 -
Python 动态加载模块的3种方法
Python 动态加载模块的3种方法 1,使用系统函数__import_() stringmodule =__import__('string') 2,使用imp 模块 importimpstringmodule = imp.load_module('string',*imp.find_module('string')) 3,使用exec impor转载 2012-02-13 16:36:48 · 789 阅读 · 0 评论 -
Python - string
转自 http://blog.youkuaiyun.com/ataraxia2010/article/details/6907907 s.strip() .lstrip() .rstrip(',') 去空格及特殊符号 复制字符串 Python 1 #strcpy(sStr1,sStr2) 2 sStr1 ='strcpy'转载 2012-04-05 12:38:18 · 635 阅读 · 0 评论 -
python fork os.pipe()
转自: http://jiangzhixiang123.blog.163.com/blog/static/27802062201171105139619/ python fork os.pipe() 2011-08-11 12:51:39| 分类:计算机-Python |字号 订阅 fork 是 python linux下 os 模块下的一个方法,转载 2012-07-19 15:49:33 · 1648 阅读 · 0 评论 -
PEP333翻译
转自:http://angeloce.iteye.com/blog/519286 英文原文:http://www.python.org/dev/peps/pep-0333/ 摘要 为促进python的web应用在各类web服务器上的移植, 本文档指定了web服务器和python的web框架间的标准接口. 原理和目标 python目前拥有了大量的转载 2012-07-30 00:42:17 · 1178 阅读 · 0 评论 -
python os.fork()
转自:http://blog.youkuaiyun.com/asware/article/details/4159366 fork 是 python linux下 os 模块下的一个方法,用来创建一个子进程。今天遇到这个问题,所以找文章来稍微了解一下。以下来自http://www.myelin.co.nz/post/2003/3/13/#200303135。不当之处多指教。 1、有时,程转载 2012-08-06 15:09:34 · 2769 阅读 · 0 评论