Python·¢Õ¹Ê·
PythonµÄ´´Ê¼ÈËΪGuido van
Rossum¡£1989ÄêÊ¥µ®½ÚÆڼ䣬ÔÚ°¢Ä·Ë¹Ìص¤£¬GuidoΪÁË´ò·¢Ê¥µ®½ÚµÄÎÞȤ£¬¾öÐÄ¿ª·¢Ò»¸öеĽű¾½âÊͳÌÐò£¬×öΪ ABC
ÓïÑÔµÄÒ»Öּ̳С£Ö®ËùÒÔÑ¡ÖÐ Python£¨´óòþÉßµÄÒâ˼£©×÷Ϊ³ÌÐòµÄÃû×Ö£¬ÊÇÒòΪËûÊÇÒ»¸öMonty PythonµÄ·ÉÐÐÂíÏ·Íŵİ®ºÃÕß¡£
ABCÊÇÓÉGuido²Î¼ÓÉè¼ÆµÄÒ»ÖÖ½ÌѧÓïÑÔ¡£¾ÍGuido±¾ÈË¿´À´£¬ABC
ÕâÖÖÓïÑԷdz£ÓÅÃÀºÍÇ¿´ó£¬ÊÇרÃÅΪ·Çרҵ³ÌÐòÔ±Éè¼ÆµÄ¡£µ«ÊÇABCÓïÑÔ²¢Ã»Óгɹ¦£¬¾¿ÆäÔÒò£¬Guido ÈÏΪÊÇ·Ç¿ª·ÅÔì³ÉµÄ
¡£Guido
¾öÐÄÔÚ Python ÖбÜÃâÕâÒ»´íÎ󣨵ÄÈ·Èç´Ë£¬Python ÓëÆäËüµÄÓïÑÔÈçC¡¢C++ºÍJava½áºÏµÄ·Ç³£ºÃ
£©¡£
ͬʱ£¬Ëû»¹ÏëʵÏÖÔÚ ABC ÖÐÉÁÏÖ¹ýµ«Î´ÔøʵÏֵĶ«Î÷¡£
¾ÍÕâÑù£¬PythonÔÚGuidoÊÖÖе®ÉúÁË¡£Êµ¼ÊÉÏ£¬µÚÒ»¸öʵÏÖÊÇÔÚMac»úÉÏ¡£¿ÉÒÔ˵£¬PythonÊÇ´ÓABC·¢Õ¹ÆðÀ´£¬Ö÷ÒªÊܵ½ÁËModula-
3£¨ÁíÒ»ÖÖÏ൱ÓÅÃÀÇÒÇ¿´óµÄÓïÑÔ£¬ÎªÐ¡ÐÍÍÅÌåËùÉè¼ÆµÄ£©µÄÓ°Ïì¡£²¢ÇÒ½áºÏÁËUnix shellºÍCµÄÏ°¹ß¡£
PythonÔÚ±à³ÌÓïÑÔÖеĶ¨Î»
ºÜ¶à´ó¹æÄ£Èí¼þ¿ª·¢¼Æ»®ÀýÈç Zope£¬ Mnet ¼° BitTorrent. Google¶¼Ôڹ㷺µØʹÓÃËü¡£
ͨ³£ÈÏΪ£¬PythonÊÇÒ»ÖÖ½âÊÍÐÔµÄÓïÑÔ£¬µ«ÊÇÕâÖÖ˵·¨ÊDz»ÕýÈ·µÄ£¬Êµ¼ÊÉÏ£¬PythonÔÚ
Ö´ÐÐʱ£¬Ê×ÏȻὫ.pyÎļþÖеÄÔ´´úÂë±àÒë³ÉPythonµÄbyte code£¨×Ö½ÚÂ룩£¬È»ºóÔÙÓÉPython Virtual
MachineÀ´Ö´ÐÐÕâЩ±àÒëºÃµÄbyte code¡£ÕâÖÖ»úÖƵĻù±¾Ë¼Ïë¸úJava£¬.NETÊÇÒ»Öµġ£È»¶ø£¬Python Virtual
MachineÓëJava»ò.NETµÄVirtual Machine²»Í¬µÄÊÇ£¬PythonµÄVirtual
MachineÊÇÒ»ÖÖ¸ü¸ß¼¶µÄVirtual Machine¡£ÕâÀïµÄ¸ß¼¶²¢²»ÊÇͨ³£ÒâÒåÉϵĸ߼¶£¬²»ÊÇ˵PythonµÄVirtual
Machine±ÈJava»ò.NETµÄ¹¦ÄܸüÇ¿´ó£¬¶øÊÇ˵ºÍJava »ò.NETÏà±È£¬PythonµÄVirtual
Machine¾àÀëÕæʵ»úÆ÷µÄ¾àÀë¸üÔ¶¡£»òÕß¿ÉÒÔÕâô˵£¬PythonµÄVirtual MachineÊÇÒ»ÖÖ³éÏó²ã´Î¸ü¸ßµÄVirtual
Machine¡£
»ùÓÚCµÄPython±àÒë³öµÄ×Ö½ÚÂëÎļþ£¬Í¨³£ÊÇ.pyc¸ñʽ¡£
ÔÚʵ¼Ê¿ª·¢ÖУ¬python³£±»êdzÆΪ½ºË®ÓïÑÔ
£¬Õâ²»ÊÇ˵Ëû»á°ÑÄãµÄÊÖָճס£¬¶øÊÇ˵ËûÄܹ»ºÜ
ÇáËɵİÑÓÃÆäËûÓïÑÔÖÆ×÷µÄ¸÷ÖÖÄ£¿é£¨ÓÈÆäÊÇC/C++£©ÇáËɵØÁª½áÔÚÒ»Æð¡£
³£¼ûµÄÒ»ÖÖÓ¦ÓÃ
ÇéÐÎÊÇ£¬Ê¹ÓÃpython¿ìËÙÉú³É³ÌÐòµÄÔÐÍ£¨ÓÐʱÉõÖÁÊdzÌÐòµÄ ×îÖÕ½çÃ棩£¬È»ºó¶ÔÆäÖÐÓÐÌرðÒªÇóµÄ²¿·Ö£¬ÓøüºÏÊʵÄÓïÑÔ¸Äд
£¬
±ÈÈç3DÓÎÏ·ÖеÄͼÐÎäÖȾģ¿é£¬ËÙ¶ÈÒªÇó·Ç³£¸ß£¬¾Í¿ÉÒÔÓÃC++ÖØд¡£
Ïà¹ØÎĵµ£º
ÀµÓºƣ¨http://laiyonghao.com£©
½ñÌ죨2009Äê5ÔÂ31ÈÕ£© OurPNP.org ¸ãÁ˸ö¾Û»á»î¶¯£¬ÅªÁËÊ®¼¸¶þÊ®¸öÈËÔÚ¹ãÖݺ£Öé¹ã³¡µÄÌûá´ôÁËÎå¸öСʱ£¬´´ÏÂÁËÎÒÔÚ K ·¿´ôµÄ×ʱ¼ä¼Í¼¡£Ó¦ËûÃǵÄÑûÇ룬ÎÒ×öÁ˸öÌâΪ¡¶Óà python ¿ìËٴÍøÓηþÎñÆ÷¡·µÄСÑݽ²£¬ÒòΪÄDZߵĵçÊÓ¾¹È»²»ÄܽӵçÄÔ£¬ËùÒÔ½²µÄʱºòûÓÐÄܹ»²ÎÕÕ PPT À´½²£¬¹Û ......
python ÖÐminidom½âÎöxml
2009Äê06ÔÂ26ÈÕ ÐÇÆÚÎå 08:40
ÏÂÃæÖ»ÁгöһЩ³£Óõķ½·¨ÊôÐÔ£¬Èç¹ûÒª²é¿´¸ü¶àµÄ·½·¨£¬ ¿ÉÒÔÈ¥¿´ÎļþminidomÈçºÎʵÏֵġ£
»ñµÃDocument¶ÔÏó
·¨Ò»£º
import xml.dom.minidom as m_dom
doc1 = m_dom.getDOMImplementation().createDocument(None, "root1", None)
doc1.documentElement.toxml(e ......
ÔÎÄÁ´½Ó
Ôø¾ÔÚÉîÈëdz³öjavaÖÐÎÄÎÊÌâ
ϵ
ÁÐÖÐÑо¿¹ýjavaµÄÖÐÎÄÎÊÌ⣬ÏÖÔÚÖÐÎÄÎÊÌâÒѾ²»ÔÙî¿°íÎÒÔÚjavaÊÀ½çÖÐÂþÓεĽŲ½ÁË¡£×î½ü£¬¶ÔPython²úÉúÁËŨºñµÄÐËȤ£¬ËÖªµÀ¸úÖÐÎÄÎÊÌâÕâ¸ö
ÀÏÅóÓÑÓÖÒ»´Î²»ÆÚ¶øÓö¡£¿´À´£¬ÔÚ´úÂëÊÀ½çÖУ¬ÖÐÎÄÎÊÌâ»áÔںܳ¤Ò»¶Îʱ¼äÀï¸úÎÒÃÇÐÎÓ°²»Àë¡£ÕâÒ²Äѹ֣¬Ë ......
ÏÂÔØÁ˺ܶàѹËõÎļþ£¬¾ÍдÁËÒ»¸ö½Å±¾
ÔÚPythonÖÐʹÓÃwinrarÃüÁËùÒÔÒ»°ãѹËõÎļþ¶¼Ö§³Ö
ÓÐЩѹËõÎļþPythonÖл¹Ã»ÓÐÏàÓ¦µÄ¿â
ÄãµÃÏÈ°ÑwinrarÌí¼Óµ½path»·¾³±äÁ¿ÖÐ
°Ñ´úÂë±£´æΪrar.py
ÔÚdosÏÂʹÓã¬È磺rar.py "D:\A B\C" mkdir
#rar.py
#decompress with winrar
#arguments :filename directory opt
# op ......
×ÛÊö
¶àÏß³ÌÊdzÌÐòÉè¼ÆÖеÄÒ»¸öÖØÒª·½Ã棬ÓÈÆäÊÇÔÚ·þÎñÆ÷Deamon³ÌÐò·½Ãæ¡£ÎÞÂÛºÎÖÖϵͳ£¬Ï̵߳÷¶ÈµÄ¿ªÏú¶¼±È´«Í³µÄ½ø³ÌÒª¿ìµÃ¶à¡£
Python¿ÉÒÔ·½±ãµØÖ§³Ö¶àÏ̡߳£¿ÉÒÔ¿ìËÙ´´½¨Ï̡߳¢»¥³âËø¡¢ÐźÅÁ¿µÈµÈÔªËØ£¬Ö§³ÖÏ̶߳Áдͬ²½»¥³â¡£ÃÀÖв»×ãµÄÊÇ£¬PythonµÄÔËÐÐÔÚPython
ÐéÄâ»úÉÏ£¬´´½¨µÄ¶àÏß³Ì¿É ......