Python
iteye_9737
这个作者很懒,什么都没留下…
展开
-
Python的编程哲学
[code="python"]>>> import thisThe Zen of Python, by Tim PetersBeautiful 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 · 107 阅读 · 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 · 131 阅读 · 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 · 100 阅读 · 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 · 116 阅读 · 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 · 146 阅读 · 0 评论 -
python中urllib和urllib2不同的调试方法
使用urllib发http请求时:[code="python"]import urllib, httplibhttplib.HTTPConnection.debuglevel = 1urllib.urlopen(”http://google.com”) [/code]使用urllib2发http请求时:[code="python"] import urllib2...2009-11-23 10:11:31 · 89 阅读 · 0 评论 -
给gmai邮箱发邮件的一段python小脚本
[code="python"]import smtplibfrom email.MIMEText import MIMETextfromaddr = '[email protected]'toaddrs = ['[email protected]','[email protected]']msg = MIMEText("test content", "plain")msg['Subjec...原创 2010-01-12 21:26:43 · 565 阅读 · 0 评论 -
获取gmail新邮件---python版
[code="python"]#! /usr/bin/python# -*- coding: utf-8 -*-#author [email protected] httplib2from xml.dom.minidom import parseString#https://user:[email protected]/mail/...原创 2010-07-29 22:57:03 · 1559 阅读 · 0 评论