Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : Python

python ÓÐIDLE 3.1 µÄÂð£¿ÄĶùÄÜÏÂÔØ?

ÈçÌ⣺
python ÓÐIDLE 3.1 µÄÂð£¿ÄĶùÄÜÏÂÔØ?
»òÕ߸üµÍ°æ±¾µÄ£¬ÔÚ¹Ù·½ÍøÕ¾É϶¼¿´²»µ½ÏÂÔØ£¬http://python.org
ÏÂÔØÒ³Ã棺
http://python.org/download

http://python.org/ftp/python/3.1.1/python-3.1.1.msi

LZҪôûÓкúÿ´£¬ÒªÃ´Ã»Óа²×°¹ý

ллÁ½Î»£¬ÎÒÊǵÚÒ»´Î°²×°£¬ºóÀ´ÔÚ:
C:\Python31\Li ......

Python 3 ·¢²¼Õâô¾ÃÁË£¬ÊÇʱºòתÒÆÁËô£¿

    RT£¬Ã²ËÆPythonÖ®¸¸Ò²ËµÈç¹ûÄãÏÖÔÚ¿ªÊ¼ÐµÄÏîÄ¿µÄ»°£¬×îºÃÊÇÖ±½ÓʹÓÃPython3£¬¿ÉÊÇʵ¼ÊÉÏ´ó¼ÒʹÓõô󲿷ֻ¹ÊÇ2.5£¬¹À¼ÆÓÃ2.6µÄ¶¼²»ÊǺܶ࣬²¢ÇÒÏà¶ÔÓ¦µÄÐí¶àÀ©Õ¹¶¼Ã»ÓÐ3¶ÔÓ¦µÄ°æ±¾¡£
    ¶ÔÓÚÐÂÊֵĻ°ÊÇʱºòתÒƵ½3.*ÁËô£¿
´òËã´Ó2010ÄêÔÙ¿¼ÂÇÁË¡£


Á¬×î»ù±¾µÄprint ¶¼¸ÄÁËд·¨£¬ÕæÊÇÎ ......

python µÄsort

ÓÐÕâôһ¸ö°æ±¾ºÅµÄlist
version = ['1.0.1', '1.0.2', '1.0.21', '1.2.9', '1.2.11']
ÎÒÔõôÑùÄܶ԰汾ºÅµÄ´óС½øÐÐÅÅÐò£¬»ñµÃ×î´óµÄ°æ±¾ºÅ(1.2.11)
max »òÕßsort¶¼ÊǶÔ×Ö·û´®½øÐÐÅÅÐò£¬²»ÊÇÎÒÒªµÄ½á¹û
´´½¨Ò»¸öVersionÀ࣬ÀàÌṩһ¸ö¿ÉÒԱȽϴóСµÄ·½·¨£¬»òÕߣ¬ÔÚÀàÖÐ ......

python±àÒëÆ÷ÎÊÌâ

    ÎÒÏÖÔÚÓõÄÊÇeclipse ÄǸö²å¼þ£¬¿ÉÄÜÊÇÒòΪûÅäÖÃÃ÷°×µÄÎÊÌ⣬¸Ð¾õ²»ºÃ£¬Ã»ÓÐһЩ±ØÒªµÄ¹¦ÄÜ¡£
    ºóÀ´ÎÒ»»ÁËEric4£¬±Èeclipse²å¼þºÃÓò»ÉÙ£¬µ«ÊÇȱÉÙÒ»¸öÎÒ×îÏ£ÍûÓеŦÄÜ£º´úÂë×·×Ù£¬¾ÍÏñeclipseÖÐдjava³ÌÐòÒ»ÑùµÄÄÇÖÖ°´×¡ctrlµã»÷·½·¨Ö±½ÓÌøµ½ÄǸö·½·¨ÖеŦÄÜ¡£
    ²»ÖªµÀÊ ......

PythonÓë½Ó¿Ú

ÁÄÁÄ£¬ÎÒÒ»Ö±²»ÊǺÜÀí½âΪʲô¶¯Ì¬ÓïÑԾͲ»ÐèÒª½Ó¿Ú£¬ÎÒÖ»ÊÇ´Ó½¨Ä£µÄ½Ç¶È¿¼ÂÇ£¬½Ó¿ÚÊÇÒ»ÖÖºÏÀíµÄ½¨Ä£·½Ê½Ñ½£¬ÌرðÊÇ´óµÄÏîÄ¿£¬¶øÇÒ´úÂëÈÝÒ×ά»¤¡£Ïà±È½Ó¿Ú¶àÖؼ̳ÐÊÇÒ»ÖÖºÜÔã¸âµÄ·½Ê½¡£ÎªÊ²Ã´¶¯Ì¬ÓïÑԾͲ»ÐèÒª½Ó¿Ú£¬ÎªÊ²Ã´Python»á·ÅÆúʵÏÖ½Ó¿Ú?ÄÇôһ¸ö½Ó¿ÚµÄµäÐÍÓ¦Ó㨺ü¸¸ö»ù±¾²»Ïà¹ØµÄºÜ¸´ÔÓµÄÀàÓµÓÐÉÙÁ¿µÄ¹²ÓÐÊôÐԺͷ ......

python×ÖµäÎÊÌâ

d = {"a":"a","b":"b","c":"c"}
print d

ΪʲôÊä³öÊÇ:{'a': 'a', 'c': 'c', 'b': 'b'}

¶ø²»ÊÇ

{'a': 'a', 'b': 'b', 'c': 'c'}Ä ......
×ܼǼÊý:175; ×ÜÒ³Êý:30; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [21] [22] [23] [24] [25] [26] 27 [28] [29] [30]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ