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

³õ̸PythonµÄ²»Í¬Ò»¡¾±Ê¼Ç£¬¹Ûºó¸Ð¡¿

    ãÂ㶮¶®µÄ°²×°ÁËPython£¬²»Îª±ðµÄ£¬Ö»Îª¸Ïµãʱ÷Ö£¬ÒòΪ¿´¼ûºÜ¶àÓÎÏ·¹«Ë¾¶¼ÒªÇó»áÒ»µãPython»òÕßLUA£¬Ã»°ì·¨£¬»¹ÊǶàѧһµãºÃ£¬·´ÕýÏÐ×ÅÒ²ÊÇÏÐ×Å¡£×Ô¼ºÄ¿Ç°²»¶®LINUX£¬ËùÒÔÔÝÇÒÓÃÓÃWINDOWSϵİɡ£
   ÈëÃÅ»¹ºÃÈëÊÖ£¬²»ÊǾÞÄÑ£¬Ö¸³ö¼¸µãÓÐÒâ˼µÄ£º
ûÓлù±¾ÀàÐÍÁË£¬µ±ÎÒ°²cÓïÑÔÓ﷨дint xʱ³ÌÐò³ö´í£¬Ô­ÀíintÒѾ­ÊÇÒ»¸öÀàÁË£¬ÓÚÊǸijÉx =int (),ĬÈÏx==0ÁË¡£
×¢ÊͲ»ÔÙÊÇÎÒÃÇÊìϤµÄ/**/»òÕß//ÁË£¬¾Ý˵ÊÇÕýÔò±í´ïʽµÄÔµ¹Ê£¬ÏÂÁËÒ»¸ö½éÉÜÎĵµ£¬»¹Ã»ÓÐ×Ðϸ¿´£¬ÏÈĬÈÏ°É£¬µ¥ÐÐ×¢ÊÍÒ»°ãÓõÄÊÇ#£¬¶àÐÐ×¢ÊÍÒ»°ãÓõÄÊÇ'''   '''¡£
elseif¸Ä³ÉelifÁË£¬whileÔÚ³ÌÐòÍ˳öʱ¼ÓÁËÒ»¸öelseÅжϣ¬for¸Ä³É for ±äÁ¿ in range£¨start,end,step£©¡¾ÓеãÏëVB°¡£¬ºÇºÇ¡¿Ò²¶àÁËÒ»¸öelseÅжϣ¬¼ÓÁËÒ»¸ö{}ÖÕÓÚÏûʧÁË£¬Ò»Ö±¾õµÃÕâ¸ö·ûºÅºÜ¶ñÐÄ£¬×÷ÓÃÓòÓ㺺ÍÇ¿ÁҵĶÔÆëÀ´±íʾ£¬´úÂëÏԵúÿ´¹¤Õû¶àÁË¡£
¹ØÓÚº¯Êý£¬ÓõÄÊǹؼü´Êdef£¬×¢ÒâµÄĬÈϲÎÊý²»Äܶ¨ÒåÔÚ±äÁ¿²ÎÊý֮ǰ£¬¹Ø¼ü²ÎÊýÔò±íʾµÄͨ¹ýÃû³ÆÀ´Ö¸¶¨ÏàÓ¦µÄ²ÎÊýºöÂÔ²»ÐèÒªµÄ²ÎÊý£¬ÓÉÓÚûÓÐÀàÐÍÁË£¬ËùÒÔÄãÒ²²»±ØÔÚºõ·µ»ØµÄÊÇʲôÀàÐ͵ÄÖµÁË¡£ÁíÍ⣬עÒâÒ»ÏÂDocStrings,ÓÐÈýÐбíʾ£¬ÏêϸÃèÊöÁ˺¯ÊýµÄ¹úÄÜ£¬Äã¿ÉÒÔͨ¹ýµ÷Óà º¯ÊýÃû.__doc__À´²é¿´À´²é¿´Ò»¸öº¯ÊýµÄ¹¦ÄÜ£¬Ì«TMÅ£±ÆÁË£¬±È²Î¿¼ÎÄÏ×µÃɪ¶àÁË¡£Èçrange.__doc__£¬Äã¾Í¿ÉÒԲ鿴rangeº¯ÊýµÄÏà¹Ø˵Ã÷ÁË¡£
ÖÁÓÚÄ£¿é£¬Õâ¸öµÄ.pyÎļþÓеãÏñ.hÎļþ£¬µ«ÊÇÓÖ°üº¬ÁË.cppÎļþµÄÄÚÈÝ£¬Å£±Æ£¬Ò»¼ýË«µñ°¡£¬²»¹ý»¹ÊDz»Ì«Ã÷°×ÀïÃæµÄ.pycÎļþµ½µ×ÊÇʲô¹¦ÄÜ£¬ÔÝÇÒ¸éÏ°ɡ£¿ÉÒÔ×¢Òâ¹Û²ìfrom----importºÍJAVAÖеÄimportÓÐɶ²»Í¬¡£
ÏÈдÕâЩ°É£¬»¹Òª½»ÖÇÄÜ»úÆ÷È˵ÄÂÛÎÄ£¬Ï»ØÔÙÐø¡£


Ïà¹ØÎĵµ£º

PythonÖ®HTMLParser

"""A parser for HTML and XHTML."""
# This file is based on sgmllib.py, but the API is slightly different.
# XXX There should be a way to distinguish between PCDATA (parsed
# character data -- the normal case), RCDATA (replaceable character
# data -- only char and entity references and end tags a ......

ʹÓÃpdbµ÷ÊÔPython³ÌÐò

ʹÓÃpdbµ÷ÊÔPython³ÌÐò
 
±¾ÎÄÌÖÂÛÔÚûÓз½±ãµÄIDE¹¤¾ß¿ÉÓõÄÇé¿öÏ£¬Ê¹ÓÃpdbµ÷ÊÔpython³ÌÐò
 
Ô´ÂëÀý×Ó
ÀýÈ磬ÓÐÄ£ÄâË°ÊÕ¼ÆËãµÄ³ÌÐò£º
 
#!/usr/bin/python
def debug_demo(val):
                if val &l ......

python hidden features

from http://stackoverflow.com/questions/101268/hidden-features-of-python
http://www.okpython.com/bbs/thread-3434-1-1.html
http://www.okpython.com/bbs/thread-3436-1-2.html
http://www.okpython.com/bbs/thread-3437-1-2.html
http://www.okpython.com/bbs/thread-3438-1-1.html
http://www.okpython.com/bb ......

¶ÔPython½ø³Ì½øÐÐÈ«½âÎö

ÏÂÃæ¶ÔPython½ø³Ì½øÐÐÉîÈë¶ø×ÐϸµÄѧϰ£¬Ê×ÏÈÏÈÈôó¼ÒÁ˽âÏÂʲôÊÇPython½ø³Ì£¬ÒÔ¼°ÔÚ¶ÔPython½ø³Ì½øÐд¦ÀíʱעÒâµÄÏà¹ØÎÊÌ⣬½ÓÏÂÀ´£¬¾ÍÓÉÎÒ¸ø´ó¼Ò½øÐнéÉÜѧϰ£¬½ö¹©´ó¼Òѧϰ¡£
²»¹ý£¬ËäÈ»½ø³Ì¿ÉÔÚµ¥¶ÀµÄÄÚ´æ¿Õ¼äÖÐÖ´ÐУ¬µ«³ý·ÇÕâЩPython½ø³ÌÔÚµ¥¶ÀµÄ´¦ÀíÆ÷ÉÏÖ´ÐУ¬·ñÔò£¬Êµ¼Ê²¢²»ÊǓͬʱ”ÔËÐеġ£ÊÇÓɲÙ×÷ ......

Python continue

1.º¯Êý
º¯Êýͨ¹ýdef¹Ø¼ü×Ö¶¨Òå¡£def¹Ø¼ü×Öºó¸úÒ»¸öº¯ÊýµÄ ±êʶ·û
Ãû³Æ£¬È»ºó¸úÒ»¶ÔÔ²À¨ºÅ¡£Ô²À¨ºÅÖ®ÖпÉÒÔ°üÀ¨Ò»Ð©±äÁ¿Ãû£¬¸ÃÐÐÒÔðºÅ½áβ¡£½ÓÏÂÀ´ÊÇÒ»¿éÓï¾ä£¬ËüÃÇÊǺ¯ÊýÌå¡£º¯ÊýÒ²ÓÐÐβκÍʵ²Î£¬ÓëC++Ψһ²»Ò»ÑùµÄÊÇÐββ»Ð´ÀàÐͶøÒÑ£¬Ö±½Óд±äÁ¿Ãû¡£
2.globalÓï¾ä
Èç¹ûÄãÏëҪΪһ¸ö¶¨ÒåÔÚº¯ÊýÍâµÄ±äÁ¿¸³Öµ£¬ÄÇÃ´Ä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ