python
fred000001
这个作者很懒,什么都没留下…
展开
-
logging
[b]1.简单的将日志打印到屏幕[/b] [code="java"]import logging logging.debug('This is debug message') logging.info('This is info message') logging.warning('This is warning message') #屏幕上打印: WARNING:root:...原创 2011-11-12 11:35:06 · 260 阅读 · 0 评论 -
print format
#format float 3.1415926->3.14 a = 3.1415926 print a b = float(int(a*100))/100 print b #string to float import string str = "3.1415926" print str print string.atof(str) 使用print输出各...原创 2011-11-12 11:36:35 · 454 阅读 · 0 评论 -
sentry
### 参考 ### http://readthedocs.org/docs/sentry/en/latest/index.html http://raven.readthedocs.org/en/latest/config/index.html?highlight=key http://blog.shanbay.com/archives/998 ### 服务端安装 ### #1 S...原创 2012-05-25 11:39:00 · 187 阅读 · 0 评论 -
sphinx
# 1 ### 添加到/usr/local/coreseek/etc/csft.conf配置文件 ### 需要修改连接的数据库配置 ### ### 需要确认dict的路径配置 ### source djapp_tag { type = pgsql sql_host = 127.0.0.1 sql_user = postgres sql_pass = * sql_d...原创 2012-05-25 11:42:51 · 122 阅读 · 0 评论