pythonʹÓÃÐĵÃ
×î½üÔÚ¹«Ë¾¸ºÔðÒ»¸öÏîÄ¿£¬ÊÇ×öÒ»¸ö±àÒëÆ÷£¬´ó¼Ò¿ÉÄÜÖªµÀ£¬×ö±àÒëÆ÷Ò»°ãÓÃC++»òjava£¬µ«ÊÇÎÒµÄÕâ¸öÏîĿȴʹÓÃÁËpythonÀ´×öÕâ¸ö±àÒëÆ÷£¬ºÜÓÐÌôÕ½ÐÔ¡£
ÎÒ½ñÌìËù½²µÄÊÇÔÚ¿ª·¢¹ý³ÌÖУ¬¶ÔʹÓÃpython2.6ÓïÑԵĸÐÊÜ£¬Ä¿Ç°Õâ¸öÏîÄ¿ÒѾÍê³ÉÈý·ÖÖ®Ò»ÁË¡£
˵ʵ»°£¬python²¢²»ÊʺÏ×öÕâÑùµÄÏîÄ¿¡££¨ËäȻҲÄÜ×ö£©ÒÔÏÂÊÇ×ܽáÁËpythonÏà¹ØÌص㣺
1¡¢python²»Ö§³Ödo-whileÓï¾ä¡¢gotoÓï¾äºÍswitchÓï¾äµÈ¡£
2¡¢python²»Ö§³Ö¶àÖÖ¹¹Ôì·½·¨µÄÀàÐÍ¡£
3¡¢¶àÖظ³Öµ»úÖÆÓëjavaºÍC²»Í¬¡£
4¡¢ÒòΪûÓÐÀàÐÍÉùÃ÷£¬ºÜ¶à·½·¨ÔÚµ÷ÓÃʱ±ØÐëÊÖд¡£
5¡¢Ä¿Ç°µÄpythonµÄIDE¹¤¾ß»¹²»ÊǺÜÍêÉÆ£¬¸úÔçÆÚjavaµÄIDEÀàËÆ£¬ÌرðÊÇʹÓÃpyscripterÿ´ÎÐ޸ĺ󣬲»ÄÜÖØе¼Èë¸üеÄÄ£¿é¡£
6¡¢²»Ö§³Ö±äÁ¿µÄ·ÃÎÊ¿ØÖÆ£¨ÀýÈçprivate¡¢publicºÍprotect£©¡£
7¡¢python¿ÉÒÔ¶¯Ì¬µÄ´´½¨³ÉÔ±±äÁ¿¡£
8¡¢ÎÞÏÞÑ»··½Ê½µ¥Ò»£¬Ö»ÄÜÊÇwhile True·½Ê½£¬ÕâÖÖfor(;;)·½Ê½²¢²»Ö§³Ö¡£
9¡¢²»Ìṩ³£ÓõÄÈýÔªÔËËã·û£¬Ò²²»Ìṩ++ºÍ--ÕâÑùµÄÔËËã·û¡£
10¡¢×Ö·û´®ÓÃ+·ûºÅÁ¬½Óʱ²»ÊǺÜÍêÉÆ£¬ÌرðÊÇ__str()__·½·¨ÔÚijЩ³¡¾°Ê¹ÓõIJ»ÊǺܷ½±ã¡£
11¡¢pythonÌṩÁ½ÖÖ±àÂë¸ñʽ£¬Èç¹û¿¼ÂǺóÆÚÀ©Õ¹£¬½¨ÒéʹÓÃunicode±àÂë¡£
12¡¢python°ü½á¹¹±È½Ï·±Ëö£¬²¢ÇÒµ÷ÓÃÄ£¿éÓÐÏȺó˳Ðò£¬¶øÇÒ__init__.pyÎļþÓÐÒ»¶¨µÄ±àд¼¼ÇÉ¡£
13¡¢ÒòΪÊǶ¯Ì¬ÓïÑÔ£¬ËùÒÔÔÚÓÐЩӦÓó¡¾°ÖУ¬»á¼Ó´óºóÆÚά»¤¡¢¿É¶Á¡¢¿ÉÀí½âµÄÄѶȣ¬ÌرðÊDZäÁ¿Ã»ÓÐÀàÐÍÉùÃ÷£¬¸ù¾ÝÄ¿Ç°µÄIDE¹¤¾ß£¬¶øÇÒpythonûÓдóÀ¨ºÅÖ®ÀàµÄ¸ÅÄºÜÈÝÒ×µ¼Ö´úÂë¿ØÖÆ˳Ðò´íÎó¡£
14¡¢pythonµÄºËÐÄ˼ÏëÍòÎï½ÔÊǶÔÏ󣨰üÀ¨±äÁ¿¡¢·½·¨µÈ£©£¬Õâ¸ö¸ÅÄî·Ç³£ÖØÒª¡£
15¡¢pythonµÄһЩÌØÐÔ¹¦ÄܵÄʹÓñØÐëÕÆÎÕ£¨Èç__doc__¡¢__setitem__¡¢__iter__¡¢yield¡¢__call__µÈ£¬ÒÔ"__"Ϊǰ׺µÄ·½·¨£©£¬ÓÐÖúÓÚÌá¸ß¿ª·¢Ëٶȡ£
16¡¢pythonÖÐand¡¢orµÄ´¦Àí·½Ê½ÓëjavaºÍC++¶¼²»Í¬¡£
ÏÂÃæÖ÷ÒªÊÇÕë¶ÔÓëµÚÈýµãÖص㽲½â£º
class A:
def __init__(self):
self.next=None
class B:
pass
ÉÏÃ涨ÒåÁËÁ½¸öÀàAºÍB¡£
ÏÂÃæÊÇÒ»ÖÖ·½Ê½ÔËÐУº
if __name__=='__main__':
b=B()
a=A()
a=a.next=b
ÁíÒ»ÖÖ·½Ê½ÔËÐУº
if __name__=='__main__':
&nbs
Ïà¹ØÎĵµ£º
python stringºÍPyQtµÄQStringµÄÇø±ð ÒÔÏÂÔÚPython2.6ºÍPyQt4.4.4 for
Python2,6»·¾³ÏÂÌÖÂÛ£º PythonÖÐÓÐÁ½ÖÖÓйØ×Ö·ûµÄÀàÐÍ£ºPython string objectºÍPython Unicode
object¡£Ö÷ҪʹÓÃPython string object½øÐÐÊý¾ÝÊäÈëÊä³ö¡£ PyQtÖÐÓëÖ®Ïà¶ÔÓ¦µÄ×Ö·ûÓйØÀà
python stringºÍPyQtµÄQStringµÄÇø±ð
ÒÔÏÂÔÚPython2.6ºÍPyQt4 ......
½ñÌì×öftpµÄ½çÃæ,×öµÄÏ൱ÓôÃÆ£¬ÅªµÃÐÄÇé¼°Æ䲻ˬ£¬ÔÚÍøÉÏËѵ½ËÀ¶¼²»ÖªµÀ¸ÃÔõô°ì£¬´òËãÃ÷ÌìÏÈ¿´¿´C£«£«
µÄÊÇÔõôŪµÄÔÙ˵¡£²»¹ý£¬ÏÖÔÚÎÒÏëдһϹØÓÚsocketµÄ±à³Ì¡£
ÏÈдһ¸öʱ¼ä·þÎñÆ÷°É£¬Ëû¼àÌý¶Ë¿Ú£¬²¢Çһ᷵»Ø ·þÎñÆ÷µÄʱ¼ä
server.py
#!/usr/bin/python
# Copyright (c) angelipin (angelipin@126.com)
import ......
ZoundryDocument
Python skin is known for its color variations and for its elasticity; it is
the warmest leather of the season and ideal for the manufacture of many luxury
goods. Sometimes natural patterns can be hidden when they're done in black, but
the finish here has a bit of a shine to it ......
×òÌìÊÔÁËÏÂÓÃHTMLParserÀàÀ´½âÎöÍøÒ³£¬¿É·¢ÏÖ½á¹û²¢²»ÀíÏë¡£²»¹ÜÔõô˵£¬ÏÈдϹý³Ì£¬Ï£ÍûºóÀ´ÈËÄÜÔÚ´Ë»ù´¡ÉϽâ¾öÎÒËùÓöµ½µÄÎÊÌâ¡£
дÁË2Ì×½â¾ö·½°¸£¬µ±È»Õâ2Ì×Ö»ÄܶÔÌض¨ÍøÕ¾ÓÐЧ¡£ÎÒÕâÀïÖ÷Ҫ˵Ã÷϶ÔBBCÖ÷Ò³www.bbc.co.ukºÍ¶ÔÍøÒ×www.163.comµÄ½âÎö¡£
¶ÔÓÚBBC£º
ÕâÌ×Òª¼òµ¥µÃ¶à£¬¿ÉÄÜÊǸÃÍøÒ³µÄ±àÂë±È½Ï±ê×¼°É
import ......
µ±½ñÓÐÐí¶àÃâ·ÑµÄ RDBMS£¨Relational Database Management
System£¬¹ØϵÊý¾Ý¿â¹ÜÀíϵͳ£©£¬ÆäÖÐһЩÊÇ¿ª·ÅÔ´ÂëÈí¼þ£¬ÁíһЩÊÇÉÌÒµ³§ÉÌÌṩµÄÃâ·Ñ²úÆ·¡£Èç¹ûÄúÕýÔÚʹÓà C/C++¡¢Java™¡¢.NET
»ò PHP
¿ª·¢Ó¦ÓóÌÐò£¬ÏëÑ°ÕÒÒ»ÖÖ¿É¿¿µÄÊý¾Ý·þÎñÆ÷£¬Ï£ÍûËüÖ§³ÖÏȽøµÄ¼¼Êõ¡¢¾ßÓ⻶ÏÀ©´óµÄ¿ª·¢ÈËÔ±ÉçÇø²¢ÒѾ²¿ÊðÔÚÐí¶à¹Ø¼ ......