Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ÒÔ±àдÓÅÃÀµÄ´úÂëΪĿ±ê£©
Ã÷ÁËʤÓÚ»Þɬ£¨ÓÅÃÀµÄ´úÂëÓ¦µ±ÊÇÃ÷Á˵ģ¬ÃüÃû¹æ·¶£¬·ç¸ñÏàËÆ£©
¼ò½àʤÓÚ¸´ÔÓ£¨ÓÅÃÀµÄ´úÂëÓ¦µ±ÊǼò½àµÄ£¬²»ÒªÓи´ÔÓµÄÄÚ²¿ÊµÏÖ£©
¸´ÔÓʤÓÚÁèÂÒ£¨Èç¹û¸´ÔÓ²»¿É±ÜÃ⣬ÄÇ´úÂë¼äÒ²²»ÄÜÓÐÄѶ®µÄ¹Øϵ£¬Òª±£³Ö½Ó¿Ú¼ò½à£©
±âƽʤÓÚǶÌ×£¨ÓÅÃÀµÄ´úÂëÓ¦µ±ÊDZâƽµÄ£¬²»ÄÜÓÐÌ«¶àµÄǶÌ×£©
¼ä¸ôʤÓÚ½ô´Õ£¨ÓÅÃÀµÄ´úÂëÓÐÊʵ±µÄ¼ä¸ô£¬²»ÒªÉÝÍûÒ»ÐдúÂë½â¾öÎÊÌ⣩
¿É¶ÁÐÔºÜÖØÒª£¨ÓÅÃÀµÄ´úÂëÊǿɶÁµÄ£©
¼´±ã¼Ù½èÌØÀýµÄʵÓÃÐÔÖ®Ãû£¬Ò²²»¿ÉÎ¥±³ÕâЩ¹æÔò£¨ÕâЩ¹æÔòÖÁ¸ßÎÞÉÏ£©
²»Òª°üÈÝËùÓдíÎ󣬳ý·ÇÄãÈ·¶¨ÐèÒªÕâÑù×ö£¨¾«×¼µØ²¶»ñÒì³££¬²»Ð´ except:pass ·ç¸ñµÄ´úÂ룩
µ±´æÔÚ¶àÖÖ¿ÉÄÜ£¬²»Òª³¢ÊÔÈ¥²Â²â
¶øÊǾ¡Á¿ÕÒÒ»ÖÖ£¬×îºÃÊÇΨһһÖÖÃ÷ÏԵĽâ¾ö·½°¸£¨Èç¹û²»È·¶¨£¬¾ÍÓÃÇî¾Ù·¨£©
ËäÈ»Õâ²¢²»ÈÝÒ×£¬ÒòΪÄã²»ÊÇ Python Ö®¸¸£¨ÕâÀïµÄ Dutch ÊÇÖ¸ Guido£©
×öÒ²ÐíºÃ¹ý²»×ö£¬µ«²»¼Ù˼Ë÷¾Í¶¯ÊÖ»¹²»Èç²»×ö£¨¶¯ÊÖ֮ǰҪϸ˼Á¿£©
Èç¹ûÄãÎÞ·¨ÏòÈËÃèÊöÄãµÄ·½°¸£¬Äǿ϶¨²»ÊÇÒ»¸öºÃ·½°¸£»·´Ö®ÒàÈ»£¨·½°¸²âÆÀ±ê×¼£©
ÃüÃû¿Õ¼äÊÇÒ»ÖÖ¾øÃîµÄÀíÄÎÒÃÇÓ¦µ±¶à¼ÓÀûÓ㨳«µ¼ÓëºÅÕÙ£©


Ïà¹ØÎĵµ£º

gentooжÔØPythonµ¼ÖÂemerge²»ÄÜʹÓýâ¾ö·½·¨

½ñÌìÒ»²»Ð¡ÐÄ°ÑPython¸øжÔصôÁË£¬µ¼ÖÂemerge²»ÄÜʹÓã¬×îÖÕÕÒµ½ÈçϽâ¾ö·½°¸£º
wget http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tar.bz2\
tar xjvf Python-2.4.4.tar.bz
cd Python-2.4.4
./configure –with-fpectl –infodir=/usr/share/info/ –mandir=/usr/share/man
make
make instal ......

¡¶PythonÓïÑÔÈëÃÅ¡·µÚ¾ÅÕÂÁÙʱС½Ú

ѧϰÁ˵ڰËÕº󣬽ôÂàÃܹĵĿªÊ¼µÚ¾ÅÕµÄѧϰ¡£
ѧϰÁË“Êý¾Ý½á¹¹²Ù×÷”£¬Ñ§Ï°ÁË“Îļþ²Ù×÷”¡£“Êý¾Ý½á¹¹²Ù×÷”»¹±È½ÏÓÐÒâ˼£¬¿´µÃ¶®¡£“Îļþ²Ù×÷”¾Í¿ªÊ¼Í·»è»èµÄ£¬ÏñÄÔ×Ó½øÁ˽¬ºý¡£
ºÃ²»ÈÝÒ׿´µ½“²Ù×÷³ÌÐò”£¬²Å·¢ÏÖ“²Ù×÷³ÌÐò”ÕâÒ»½ÚµÄÄÚÈݲ¢²»ÊÇÎÒËù ......

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´¦ÀízipÎļþ£¨×ª£© 2009

 ×ª×Ô http://hi.baidu.com/xunxun129/blog/item/3befad0f8ff992c07bcbe180.html
ÓÐʱÎÒÃÇÐèÒªÔÚ Python
ÖÐʹÓà zip Îļþ£¬¶øÔÚ1.6°æÖУ¬Python ¾ÍÒѾ­ÌṩÁË zipfile Ä£¿é¿ÉÒÔ½øÐÐÕâÑùµÄ²Ù×÷¡£²»¹ý Python ÖеÄ
zipfile Ä£¿é²»ÄÜ´¦Àí¶à¾íµÄÇé¿ö£¬²»¹ýÕâÖÖÇé¿ö²¢²»¶à¼û£¬Òò´ËÔÚͨ³£Çé¿öÏÂÒѾ­×㹻ʹÓÃÁË¡£ÏÂÃæÎÒÖ»Ê ......

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µÄÀý×Ó
#
#================ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ