
python
iteye_15104
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python自动安装工具easy_install
python社区向来工具满天飞,很多著名的工具或开发框架都是由一个或少数的几个人维护,这样带来了后续支持差,不像apache基金组织那样的集中孵化、管理的那么井井有序。下面介绍python中一款强力工具easy_install,主要功能类似linux里的apt -get或rails里的gem可以管理插件、工具包的安装。网上部分easy_install的安装介绍不能适用,我将自己的安...2011-07-02 15:37:23 · 273 阅读 · 0 评论 -
python自动安装工具easy_install的使用
安装easy_install完成之后,如何使用easy_install呢,去官网看看吧:[url=http://peak.telecommunity.com/DevCenter/EasyInstall#downloading-and-installing-a-package]--Downloading and Installing a Package[/url]使用一: 根...原创 2011-07-02 15:50:22 · 153 阅读 · 0 评论 -
Pyramid创建项目
学习pyramid参考[url=http://docs.pylonsproject.org/projects/pyramid/1.0/narr/project.html]官网资料[/url]时,其中进行到the Interactive Shell时,出现了找不到pshell的情况,通过分析paster --help下的提示,尝试了paster --plugin=pshell command1 co...原创 2011-07-04 15:09:28 · 480 阅读 · 0 评论 -
python编程乱码之一刀切
问题的提出:做文本生成工作的时候,生成的是ansi编码,转换成utf8的时候就出现中文乱码的问题,检查字符串加上'u'之后,被一个异常卡住'unicodedecodeerror ascii codec can't decode byte'问题解决:google之后,求得一解决办法。对需要 str->unicode 的代码,可以在前边写上[code="python"]import sys...原创 2011-08-17 13:13:02 · 171 阅读 · 0 评论 -
python装饰器
python中最不想python风格的就是装饰器了,特别是‘@’很令新来python的人费解,不过装饰器可是很强大的功能。装饰器语法有两种,类风格和函数风格类风格例子:[code="python"]class entryExit(object): def __init__(self, f): self.f = f def __call__(...原创 2011-11-06 21:54:06 · 141 阅读 · 0 评论