sharplife


software is a artwork, also make the life better !!!
  首页  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Python

摘要:Ref:http://wiki.jmoiron.net/MigratingFromApacheToNginxhttp://turbogears.org/2.0/docs/main/Deployment/modwsgi+virtualenv.htmlhttp://wiki.nginx.org/NginxConfigurationReq:Debian os, python2.5, apache2, l... 阅读全文

posted @ 2009-03-28 17:05 sharplife 阅读(1637) 评论(0) 推荐(0)

摘要:参考Pylons下unicode介绍:http://wiki.pylonshq.com/display/pylonsdocs/Unicode1.3Unicode Literals in Python Source CodeIn Python source code, Unicode literals are written as strings prefixed withthe 'u' or 'U... 阅读全文

posted @ 2009-03-16 17:32 sharplife 阅读(457) 评论(0) 推荐(0)

摘要:1、Python & Unicode (《Dive into python》)例9.13.unicode 介绍>>> s = u'Dive in' >>> su'Dive in'>>> print s Dive in 为了创建一个 unicode 字符串而不是通常的 ASCII 字符串,要在字符串前面加上字母 “u&rdqu... 阅读全文

posted @ 2009-03-07 18:47 sharplife 阅读(1025) 评论(0) 推荐(0)

摘要:TG2b6看来又更改发布哲学了,部分包被分出去了,需要单独的easy_install,折腾了我好几小时。文档(http://turbogears.org/2.0/docs/main/DownloadInstall.html)似乎还未更新成能装b6,安装步骤如下:安装python2.5+,setuptools,mysql...为保安全,装virtual enviro,> easy_instal... 阅读全文

posted @ 2009-03-06 17:28 sharplife 阅读(573) 评论(0) 推荐(0)