
Python
iteye_9737
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python的编程哲学
[code="python"]>>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicate...2008-06-28 20:40:06 · 165 阅读 · 0 评论 -
ipython和pydev都很不错
关于ipython,目前可以见到的中文介绍可参考[url]http://forum.ubuntu.org.cn/viewtopic.php?p=447255[/url]。[quote]tab补全,对象自省,强大的历史机制,内嵌的源代码编辑,集成Python调试器,%run机制,宏,创建多个环境以及调用系统shell的能力[/quote]确实非常强大。 pydev也非常不错了,代码自动完成,d...2009-10-28 09:09:45 · 165 阅读 · 0 评论 -
python资料收集(幻灯片)
python作者Guido van Rossum历年发表的幻灯片: [url]http://www.python.org/doc/essays/ppt/[/url] python会议幻灯片: [url]http://wiki.europython.eu/TalkMaterials[/url] [url]http://wiki.python.org/moin/EuroPython2004...原创 2009-11-09 14:00:15 · 142 阅读 · 0 评论 -
飞信给自己发测试短信时sip指令必须改成SENDCatSMS
飞信给自己发测试短信时sip指令必须改成SENDCatSMS,不是SENDSMS 可可熊的PyFetion有漏洞,可以这样调用fetion.send_msg(sms,None,"SENDCatSMS") ;默认flasg是“SENDSMS”。我的ruby fetion单独提供给自己发短信的接口了 补充一下:send_msg(sms,"自己的飞信号")也可以给自己发消息...2009-11-19 11:22:58 · 182 阅读 · 0 评论 -
App Engine上ajax请求python中文乱码问题
python对utf-8编码的支持真让人恼火。在Google App Enginea上发ajax请求时,有中文字符时,乱码问题很让人头痛。尝试了一种解决方法是可行的: [list] [*]浏览器端使用encodeURIComponent或者encodeURI编码中文字符; [*]服务器端使用urllib模块的unquote方法: [/list] [code="python"] st...2009-11-19 12:29:12 · 190 阅读 · 0 评论 -
python中urllib和urllib2不同的调试方法
使用urllib发http请求时: [code="python"] import urllib, httplib httplib.HTTPConnection.debuglevel = 1 urllib.urlopen(”http://google.com”) [/code] 使用urllib2发http请求时: [code="python"] import urllib2 ...2009-11-23 10:11:31 · 153 阅读 · 0 评论 -
给gmai邮箱发邮件的一段python小脚本
[code="python"] import smtplib from email.MIMEText import MIMEText fromaddr = 'xxx1@gmail.com' toaddrs = ['xx@sina.com','aaaa@gmail.com'] msg = MIMEText("test content", "plain") msg['Subjec...原创 2010-01-12 21:26:43 · 760 阅读 · 0 评论 -
获取gmail新邮件---python版
[code="python"] #! /usr/bin/python # -*- coding: utf-8 -*- #author newdongyuwei@gmail.com import httplib2 from xml.dom.minidom import parseString #https://user:password@mail.google.com/mail/...原创 2010-07-29 22:57:03 · 2509 阅读 · 0 评论