Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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 complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Tim Peters µÄ Python Ö®ìø
ÓÅÃÀʤÓڳ󪣨Python ÒÔ±àдÓÅÃÀµÄ´úÂëΪĿ±ê£©
Ã÷ÁËʤÓÚ»Þɬ£¨ÓÅÃÀµÄ´úÂëÓ¦µ±ÊÇÃ÷Á˵ģ¬ÃüÃû¹æ·¶£¬·ç¸ñÏàËÆ£©
¼ò½àʤÓÚ¸´ÔÓ£¨ÓÅÃÀµÄ´úÂëÓ¦µ±ÊǼò½àµÄ£¬²»ÒªÓи´ÔÓµÄÄÚ²¿ÊµÏÖ£©
¸´ÔÓʤÓÚÁèÂÒ£¨Èç¹û¸´ÔÓ²»¿É±ÜÃ⣬ÄÇ´úÂë¼äÒ²²»ÄÜÓÐÄѶ®µÄ¹ØÏµ£¬Òª±£³Ö½Ó¿Ú¼ò½à£©
±âƽʤÓÚǶÌ×£¨ÓÅÃÀµÄ´úÂëÓ¦µ±ÊÇ±âÆ½µÄ£¬²»ÄÜÓÐÌ«¶àµÄǶÌ×£©
¼ä¸ôʤÓÚ½ô´Õ£¨ÓÅÃÀµÄ´úÂëÓÐÊʵ±µÄ¼ä¸ô£¬²»ÒªÉÝÍûÒ»ÐдúÂë½â¾öÎÊÌ⣩
¿É¶ÁÐÔºÜÖØÒª£¨ÓÅÃÀµÄ´úÂëÊǿɶÁµÄ£©
¼´±ã¼Ù½èÌØÀýµÄʵÓÃÐÔÖ®Ãû£¬Ò²²»¿ÉÎ¥±³ÕâЩ¹æÔò£¨ÕâЩ¹æÔòÖÁ¸ßÎÞÉÏ£©
²»Òª°üÈÝËùÓдíÎ󣬳ý·ÇÄãÈ·¶¨ÐèÒªÕâÑù×ö£¨¾«×¼µØ²¶»ñÒì³££¬²»Ð´ except:pass ·ç¸ñµÄ´úÂ룩
µ±´æÔÚ¶àÖÖ¿ÉÄÜ£¬²»Òª³¢ÊÔÈ¥²Â²â
¶øÊǾ¡Á¿ÕÒÒ»ÖÖ£¬×îºÃÊÇΨһһÖÖÃ÷ÏԵĽâ¾ö·½°¸£¨Èç¹û²»È·¶¨£¬¾ÍÓÃÇî¾Ù·¨£©
ËäÈ»Õâ²¢²»ÈÝÒ×£¬ÒòΪÄã²»ÊÇ Python Ö®¸¸£¨ÕâÀïµÄ Dutch ÊÇÖ¸ Guido£©
×öÒ²ÐíºÃ¹ý²»×ö£¬µ«²»¼Ù˼Ë÷¾Í¶¯ÊÖ»¹²»Èç²»×ö£¨¶¯ÊÖ֮ǰҪϸ˼Á¿£©
Èç¹ûÄãÎÞ·¨ÏòÈËÃèÊöÄãµÄ·½°¸£¬Äǿ϶¨²»ÊÇÒ»¸öºÃ·½°¸£»·´Ö®ÒàÈ»£¨·½°¸²âÆÀ±ê×¼£©
ÃüÃû¿Õ¼äÊÇÒ»ÖÖ¾øÃîµÄÀíÄÎÒÃÇÓ¦µ±¶à¼ÓÀûÓ㨳«µ¼ÓëºÅÕÙ£©


Ïà¹ØÎĵµ£º

PythonÍêÈ«ÐÂÊֽ̳Ì

http://www.cppblog.com/oosky/archive/2005/10/11/639.html
Lesson 1 ×¼±¸ºÃѧϰPythonµÄ»·¾³
Python µÄ¹Ù·½ÍøÖ·£º
www.python.org
µã»÷ÏÂÃæÁ¬½Ó¾Í¿ÉÒÔÖ±½ÓÏÂÔØÁË£¬ÕâÀïÖ»ÌṩÁËWindowsϵÄPython¡£
http://www.python.org/ftp/python/2.4.2/python-2.4.2.msi
linux°æ±¾µÄÎҾͲ»ËµÁË£¬ÒòΪÈç¹ûÄãÄܹ»Ê¹ÓÃlinux²¢°²×° ......

Python cPAMIE Ä£ÄâIEä¯ÀÀÆ÷

 
PAMIE ÊÇÒ»¸öºÜÓÐÒâ˼µÄÄ£¿é¡£ËüÊÇÒ»¸öʵÏÖIE×Ô¶¯»¯µÄÄ£¿é¡£ÔÚ´Ë֮ǰÎÒʹÓùýClientCookieÕâ¸öÄ£¿é£¬Ëü¿ÉÒÔʹÓÃurllib2À´Í¨¹ý³ÌÐò·ÃÎÊÒ³Ãæ£¬²¢ÇÒºÜÊʺÏÔÚÐèÒªcookieÖ§³ÖµÄ»·¾³ÖС£²»¹ý£¬ÓÐЩwebµÄ·ÃÎʹý³Ì²¢²»½ö½öÊÇÏÂÔØÎļþÕâÑùµÄÊÂÇ飬ÓÐʱÊÇһϵͳµÄ¶¯×÷¡£PAMIEÓ¦¸ÃÊÇÒ»¸ö¸üÖ±¹Û£¬¸ü¼òµ¥µÄÄ£ÄâÊÖ¹¤ÊäÈëµÄ¹ý³Ì¡£² ......

pythonÈçºÎÁ¬½ÓMySQLÊý¾Ý¿â

 
#!/usr/bin/env python
# -*-coding:UTF-8-*-#ÕâÒ»¾ä¸æËßpythonÓÃUTF-8±àÂë
#=========================================================================
#
# NAME: Python MySQL test
#
# AUTHOR: benyur
# DATE  : 2004-12-28
#
# COMMENT: ÕâÊÇÒ»¸öpythonÁ¬½ÓmysqlµÄÀý×Ó
#
#================ ......

python¿ì½Ý¼ü»ã¼¯


Ctrl+3            ÐÐ×¢ÊÍ
Ctr+\               È¥ÐÐ×¢ÊÍ
Ctrl+Shift+3   È¥ÐÐ×¢ÊÍ
Ctrl+4            ¿é×¢ÊÍ
Ctrl+5         & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ