![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
fred000001
这个作者很懒,什么都没留下…
展开
-
logging
[b]1.简单的将日志打印到屏幕[/b][code="java"]import logginglogging.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 · 259 阅读 · 0 评论 -
print format
#format float 3.1415926->3.14a = 3.1415926print ab = float(int(a*100))/100print b#string to float import stringstr = "3.1415926"print strprint string.atof(str)使用print输出各...原创 2011-11-12 11:36:35 · 453 阅读 · 0 评论 -
sentry
### 参考 ###http://readthedocs.org/docs/sentry/en/latest/index.htmlhttp://raven.readthedocs.org/en/latest/config/index.html?highlight=keyhttp://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 评论