python
jiaosan
这个作者很懒,什么都没留下…
展开
-
从今天开始学点python
python ruby之间纠结了好长时间 robbin带动下甚至先学习了一天ruby,被语法之简洁折服, 然决定学python了 why http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html 好吧 我很俗 python有赶超php之式,一段时间在五六之间晃 ruby仍在十名开外 各大厂商对python的支持...原创 2011-04-19 15:10:43 · 98 阅读 · 0 评论 -
google app engine python 汉字编码问题
参考 http://www.makenotes.net/?p=1001 google app engine 的request,response默认都是utf-8 我想用urlfetch.fetch(url)抓取cnbeta,cnbeta编码是GB2312 所以要这么写 [code="java"] def get(self): self.request.c...2011-05-02 10:55:15 · 78 阅读 · 0 评论 -
django DoesNotExist at /admin/
http://blog.sina.com.cn/s/blog_700c93a80100soyp.html 今天发现一个问题,不知道是不是Django的bug, 当在django管理后台删除掉默认的example.com,添加自己的site后,报错,DoesNotExist at /admin/ , google之,看到一个google group貌似有答案,有人答曰:移除掉INSTA...原创 2011-08-24 16:12:48 · 349 阅读 · 0 评论 -
make you python file executable
If you want to call it as sleep rather than sleep.py, then you can add the .PY extension to your PATHEXT environment variable. In XP, you can edit it in: My Computer → Properties (menu) → Advanced ...原创 2011-10-19 10:28:46 · 121 阅读 · 0 评论