![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
文章平均质量分 85
fire01312
这个作者很懒,什么都没留下…
展开
-
DJANGO 数据库API (转)
数据库 API 参考 作者: Django 团队 译者: weizhong2004@gmail.com 翻译开始日期: 2006-04-04 翻译完成日期: 2006-04-05 更新日期: 2006-04-19 原文版本: 2741 一旦 数据模型 创建完毕, 自然会有存取数据的需要.本文档介绍了由 models 衍生而...原创 2009-11-25 09:27:55 · 60 阅读 · 0 评论 -
python 获取shell命令返回值
1.os.system(cmd) 只能得到成功或者失败信息。 2.os.popen 或者os.popen2() 3.output = subprocess.Popen(['ls','-l'],stdout=subprocess.PIPE,shell=True).commun icate() 4. command 模块 status, output = commands.getstatuso...2010-12-24 12:45:52 · 931 阅读 · 0 评论 -
Django 资源收藏
非常全的资料 http://code.djangoproject.com/wiki/DjangoResources 项目管理:rancho http://demo.getrancho.com 文本比较库: http://code.google.com/p/google-diff-match-patch/ 值得研究!...原创 2010-06-23 11:08:10 · 90 阅读 · 0 评论 -
Python 有用库收集--持续更新中
1.控制台下的进度库 http://pypi.python.org/pypi/progressbar 2.控制台彩色打印库 http://pypi.python.org/pypi/termcolor2010-08-24 08:58:42 · 132 阅读 · 0 评论 -
Python 常用模块
Python 常用模块 来自:http://www.pythonclub.org/doku/index.php/python-basic/module Python 常用模块 difflib python diff比较模块 adodb:我们领导推荐的数据库连接组件 bsddb3:BerkeleyDB的连接组件 Cheetah-1.0:我比较喜欢这个版本的cheeta...原创 2009-12-23 09:12:30 · 117 阅读 · 0 评论 -
Django on Nginx
http://wiki.freebsdchina.org/doc/n/nginx_django Django on Nginx 建议:FreeBSD RELENG_6 使用心得:nginx处理大并发比较稳定,特别省内存,配置简单. 1.安装python cd /usr/ports/lang/python make install clean 2.安装flup cd /usr/...原创 2009-12-18 15:29:33 · 101 阅读 · 0 评论 -
python re 模块
正则表达式与 re 模块 一个正则表达式就是一个用来表示某种模式的字符串。它能帮助你方便的检查一个字符串是否与某种模式匹配。 re 模块使 Python 语言拥有全部的正则表达式功能。 compile 函数根据一个模式字符串和可选的标志参数生成一个正则表达式对象。该对象拥有一系列方法用于正则表达式匹配和替换。 re 模块也提供了与这些方法功能完全一致的函数,这些函数使用一个模式字符串做为它...原创 2009-12-17 16:13:09 · 101 阅读 · 0 评论 -
Django meta
通过一个内嵌类 "class Meta" 给你的 model 定义元数据, 类似下面这样: class Foo(models.Model): bar = models.CharField(maxlength=30) class Meta: # ... Model 元数据就是 "不是一个字段的任何数据" -- 比如排序选项, admin 选项等等. 下面是所有可能用到...2010-03-24 10:23:27 · 194 阅读 · 0 评论 -
memcached全面剖析
idv2.com memcached全面剖析 长野雅广、前坂徹著 charlee 译 版本1.0 1 idv2.com 目录 译者序..............................................................................................................................原创 2009-12-10 16:14:58 · 83 阅读 · 0 评论 -
mysq 名录备忘
1:使用SHOW语句找出在服务器上当前存在什么数据库: mysql> SHOW DATABASES; 2:2、创建一个数据库MYSQLDATA mysql> CREATE DATABASE MYSQLDATA; 3:选择你所创建的数据库 mysql> USE MYSQLDATA; (按回车键出现Database changed 时说明操作成功!) ...原创 2009-12-08 20:58:11 · 66 阅读 · 0 评论 -
django Widgets
Widgets¶ A widget is Django’s representation of a HTML input element. The widget handles the rendering of the HTML, and the extraction of data from a GET/POST dictionary that corresponds to the w...2009-11-27 09:02:36 · 149 阅读 · 0 评论 -
django 备忘录 (转)记录django中小窍门
django forms中widget属性的自定义 如有model: 代码 :class Book(models.Model): title = models.CharField(maxlength=100) authors = models.ManyToManyField(Author) publisher = models.Fore...原创 2009-11-27 09:00:59 · 89 阅读 · 0 评论 -
python 常用类库!
Python学习 On this page... (hide) 1. 基本安装 2. Python文档 2.1 推荐资源站点 2.2 其他参考资料 2.3 代码示例 3. 常用工具 3.1 Python IDE 3.2 内置类库使用参考 3.3 常用第三方类库 3.4 其他东西 3.5 有意思的东西 3.6 ...原创 2010-07-01 11:55:46 · 559 阅读 · 0 评论