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

python º¯Êý

PythonÖк¯Êý²ÎÊýµÄ´«µÝÊÇͨ¹ý“¸³Öµ”À´´«µÝµÄ¡£µ«ÕâÌõ¹æÔòÖ»»Ø´ðÁ˺¯Êý²ÎÊý´«µÝµÄ“Õ½ÂÔÎÊÌ┣¬²¢Ã»Óлشð“Õ½ÊõÎÊÌ┣¬Ò²¾Í˵ûÓлشðÔõô¸³ÖµµÄÎÊÌâ¡£º¯Êý²ÎÊýµÄʹÓÿÉÒÔ·ÖΪÁ½¸ö·½Ã棬һÊǺ¯Êý²ÎÊýÈçºÎ¶¨Ò壬¶þÊǺ¯ÊýÔÚµ÷ÓÃʱµÄ²ÎÊýÈçºÎ½âÎöµÄ¡£¶øºóÕßÓÖÊÇÓÉÇ°Õß¾ö¶¨µÄ¡£º¯Êý²ÎÊýµÄ¶¨ÒåÓÐËÄÖÖÐÎʽ£º
   1. F(arg1,arg2,...)
   2. F(arg2=<value>,arg3=<value>...)
   3. F(*arg1)
   4. F(**arg1)
µÚ1 ÖÖ·½Ê½ÊÇ×î“´«Í³”µÄ·½Ê½£ºÒ»¸öº¯Êý¿ÉÒÔ¶¨Òå²»ÏÞ¸öÊý²ÎÊý£¬²ÎÊý£¨ÐÎʽ²ÎÊý£©·ÅÔÚ¸úÔÚº¯ÊýÃûºóÃæµÄСÀ¨ºÅÖУ¬¸÷¸ö²ÎÊýÖ®¼äÒÔ¶ººÅ¸ô¿ª¡£ÓÃÕâÖÖ·½Ê½¶¨ÒåµÄº¯ÊýÔÚµ÷ÓõÄʱºòÒ²±ØÐëÔÚº¯ÊýÃûºóµÄСÀ¨ºÅÖÐÌṩÏàµÈ¸öÊýµÄÖµ£¨Êµ¼Ê²ÎÊý£©£¬²»ÄܶàÒ²²»ÄÜÉÙ£¬¶øÇÒ˳Ðò»¹±ØÐëÏàͬ¡£Ò²¾ÍÊÇ˵ÐβκÍʵ²ÎµÄ¸öÊý±ØÐëÒ»Ö£¬¶øÇÒÏë¸øÐβÎ1µÄÖµ±ØÐëÊÇʵ²ÎÖеĵÚһ룬ÐβÎÓëʵ²ÎÖ®¼äÊÇÒ»Ò»¶ÔÓ¦µÄ¹Øϵ£¬¼´“ÐβÎ1=ʵ²Î1 ÐβÎ2=ʵ²Î2...”¡£ºÜÃ÷ÏÔÕâÊÇÒ»Öַdz£²»Áé»îµÄÐÎʽ¡£±ÈÈ磺"def addOn(x,y): return x + y"£¬ÕâÀﶨÒåµÄº¯ÊýaddOn£¬¿ÉÒÔÓÃaddOn(1,2)µÄÐÎʽµ÷Óã¬Òâζ×ÅÐβÎx½«È¡Öµ1,Ö÷½«È¡Öµ2¡£addOn(1,2,3)ºÍaddOn (1)¶¼ÊÇ´íÎóµÄÐÎʽ¡£
µÚ2ÖÖ·½Ê½±ÈµÚ1ÖÖ·½Ê½ºÃÒ»µã£¬ÔÚ¶¨ÒåµÄʱºòÒѾ­¸ø¸÷¸öÐβζ¨ÒåÁËĬÈÏÖµ¡£Òò´Ë£¬ÔÚµ÷ÓÃÕâÖÖº¯Êýʱ£¬Èç¹ûûÓиø¶ÔÓ¦µÄÐÎʽ²ÎÊý´«µÝʵ²Î£¬ÄÇôÕâ¸öÐβξͽ«Ê¹ÓÃĬÈÏÖµ¡£±ÈÈ磺“def addOn(x=3,y=5): return x + y”£¬ÄÇôaddOn(6,5)µÄµ÷ÓÃÐÎʽ±íʾÐβÎxÈ¡Öµ6£¬yÈ¡Öµ5¡£´ËÍ⣬addOn(7)Õâ¸öÐÎʽҲÊÇ¿ÉÒԵģ¬±íʾÐβÎxÈ¡Öµ7£¬yȡĬÈÏÖµ5¡£Õâʱºò»á³öÏÖÒ»¸öÎÊÌ⣬Èç¹ûÏëÈÃxȡĬÈÏÖµ£¬ÓÃʵ²Î¸øy¸³ÖµÔõô°ì£¿Ç°ÃæÁ½ÖÖµ÷ÓÃÐÎʽÃ÷ÏԾͲ»ÐÐÁË£¬Õâʱ¾ÍÒªÓõ½PythonÖк¯Êýµ÷Ó÷½·¨µÄÁíÒ»´ó¾øÕÐ ©¤©¤¹Ø½¡×Ö¸³Öµ·¨¡£¿ÉÒÔÓÃaddOn(y=6)£¬Õâʱ±íʾxȡĬÈÏÖµ3£¬¶øyÈ¡Öµ6¡£ÕâÖÖ·½Ê½Í¨¹ýÖ¸¶¨ÐÎʽ²ÎÊý¿ÉÒÔʵÏÖ¿ÉÒÔ¶ÔÐÎʽ²ÎÊý½øÐГ¾«È·¹¥»÷”£¬Ò»¸ö¸±´øµÄ¹¦ÄÜÊÇ¿ÉÒÔ²»±Ø×ñÊØÐÎʽ²ÎÊýµÄÇ°ºó˳Ðò£¬±ÈÈ磺addOn(y=4,x=6)£¬ÕâÒ²ÊÇ¿ÉÒԵġ£ÕâÖÖͨ¹ýÐÎʽ²ÎÊý½øÐж¨µã¸³ÖµµÄ·½Ê½¶ÔÓÚÓõÚ1ÖÖ·½Ê½¶¨ÒåµÄº¯ÊýÒ²ÊÇÊÊÓõġ£
ÉÏÃæÁ½ÖÖ·½Ê½¶¨ÒåµÄÐÎʽ²ÎÊýµÄ¸öÊý¶¼Êǹ̶¨µÄ£¬±ÈÈ綨Ò庯ÊýµÄʱºòÈç¹û¶¨ÒåÁË5¸öÐβΣ¬ÄÇôÔÚµ÷ÓõÄʱºò×î¶àÒ²Ö»ÄܸøËü´«µÝ5¸öʵ²Î¡£µ«ÊÇÔÚʵ¼Ê±à³ÌÖв¢²»ÄÜ×ÜÊÇÈ·¶¨Ò»¸öº¯Êý»áÓжàÉÙ¸ö²ÎÊý¡£µÚ3


Ïà¹ØÎĵµ£º

Python¿ª·¢Activex×é¼þ

PythonÇ¿µÄ¹¦ÄܾÍÔÚÓÚËüÎÞËù²»ÄÜ¡£
ʹÓÃwin32comÄ£¿é¿ª·¢window ActiveXµÄʾÀý£º£¨Èç¹ûÄ㻹ûÓÐ×°win32comÄ£¿éµÄ»°£¬Çëµ½http://python.net/crew/skippy/win32/Downloads.htmlÏÂÔØ£©¡£
# SimpleCOMServer.py
class PythonUtilities:
_public_methods_ = ['SplitString']
_reg_progid_ = "Python.Utilities"
......

ʹÓÃPythonÓïÑÔÉè¼Æ»ùÓÚHTMLµÄCÓïÑÔÓï·¨¼ÓÁÁÏÔʾ³ÌÐò

2005-2006ѧÄêµÚ1ѧÆÚ
±à Òë Ô­ Àí 
¿Î ³Ì Éè ¼Æ ±¨ ¸æ
°à¼¶   02¼Æ(¶þ)   
ѧºÅ     19     
ÐÕÃû     ÁõÏþÃ÷     
³É¼¨           
Ö¸µ¼½Ìʦ   ¬³¯»Ô   
Ò»¡¢   Éè¼ÆÄ¿µÄ
¼ÓÉî¶Ô±àÒ ......

Python and MySQL

 ½üÀ´ÐèÒªÓÃPython¶ÔMySQLÊý¾Ý¿â½øÐвÙ×÷¡£Python¾ÃÎÅÆäÃû£¬Î´¼ûÆä“ÈË”£»Êý¾Ý¿âÔø¾­ºÜ¸ß·Ö£¬ÔçÒÑ»¹¸øÏÈÉú£¬¸üÎÞMySQL¾­Ñé¡£ÓÚÊÇÒ»ÇдÓÁ㿪ʼ£¬½è»úºÃºÃѧϰһ·¬¡£
PythonÕâ¸ö½Å±¾ÓïÑÔȷʵÃû¸±Æäʵ£¬ÓÃÁ˼¸Ìì±ãϲ»¶ÉÏËüÀ²¡£ºÜ¼ò½à£¬ºÜ·½±ã¡£ÒÔËõ¼õ×÷Ϊģ¿é·Ö¸î·û£¬¶ÁÆðÀ´ÉÍÐÄÔÃÄ¿¡£pythonµÄÄÚ½¨Êý¾ÝÀàÐÍ£¨ ......

Installing Python °²×°Python


   
You are here: Home ‣ Dive Into Python 3 ‣
Difficulty level: ♦♢♢♢♢
Installing Python °²×°Python
❝ Tempora mutantur nos et mutamur in illis. (Times change, and we change with them.) ❞
— ancient Roman proverb
 
D ......

PythonÓÐÓõÄÄ£¿é

http://chardet.feedparser.org/  ×Ô¶¯¼ì²â±àÂë
http://effbot.org/zone/celementtree.htm  cElementTree
http://github.com/jaybaird/python-bloomfilter bloomfilter
http://docs.python.org/library/threading.html#threading.activeCount threading ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ