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

·¢²¼pythonÓ¦ÓóÌÐò

¡¾windows+python3.1.2¡¿
·¢²¼pythonÓ¦ÓóÌÐòÊǸöºÜÂé·³µÄÊ£¬ÒòΪ<1>ÎÞ·¨±àÒëÔ­Éúcode<2>ÿ¸ö°æ±¾µÄ×Ö½ÚÂ벻ͬ<3>Èç¹ûÖ±½ÓÉÏÔ´Âë»áËðº¦×Ô¼ºµÄÀûÒæ——µÈµÈ
·½·¨1——ÊÖ¶¯´ò°ü
Ôõô´ò°üÄØ£¿Ò»¸öpythonÎļþ¼ÐÒª¶þÊ®¶àMB°¡£¡
yes£¡ÎÒÃǾÍÒªÇåÀíÎÞÓõĶ«Î÷£¡
ÏÈдһ¸öwin.pyÎļþ£º
x = int(input("please a number: "))
print("your number is:",x)

ÔÙдrun.bat£º
@python -m py_compile win.py
@python win.pyc
@pause

È»ºó°ÑpythonÎļþ¼ÐÀïµÄÎļþÈ«²¿¸´ÖƵ½winºÍrunµÄĿ¼Ï¡£
ÏÖÔÚ¿ªÊ¼¾«¼ò——
1.ÏÈËÑË÷ËùÓеÄ.txt£¬É¾³ý
2.ɾ³ýDocĿ¼£¨ÄãÈÏΪÓû§»áÈ¥¿´pythonµÄÎĵµÂ𣿣©
3.ɾ³ýToolsĿ¼
ÏÖÔÚ¿ªÊ¼Åжϣ¬Óõ½tclû£¿Óõ½¶îÍâµÄ¿âû£¿Óõ½unicodeû£¿Óõ½ctypesû£¿È»ºó½øÈë¸÷¸öĿ¼½øÐÐɾ³ý¶îÍâµÄÎļþ¡£ÒòΪÎÒÃǵÄwin.pyʲô¶¼Ã»ÓÐÓõ½£¬ËùÒÔɾ³ý³ýÁËpython[.exe]ÍâµÄËùÓж«Î÷£¬¸ã¶¨£¡ÔËÐÐrun.batÕÕÑùÔËÐС£
È»ºó——´ò°üËùÐèµÄ¿â£¬ÔÙ°´ÏàͬµÄ°ì·¨È¥³ýÎÞÓõĶ«Î÷£¨ÎÒ²âÊÔʱÓÃ^x^vÀ´²âÊÔ£¬±È½Ï¼ò±ã£¬ÄãÈÏΪʲô·½·¨±È½Ï·½±ã£¿£©
·½·¨2——Óû§²Ù×÷
Õâ¸ö·½·¨¶ÔÔÛ±àдÕßÀ´Ëµ¼òµ¥£¬Ò²¾ÍÊÇÖ»´ò°ü³ÌÐòÓõ½µÄ¡¢RUNTIME²»×Ô´øµÄ¡¢¶ÔÔÛºÍÓû§À´Ëµ¶¼ÊǶîÍâµÄ——¿â£¬ÔÛ¹â´ò°üËü£¬ºÃÁË£¬Ð´¸öreadme£¬ÒªÇóÓû§ÊÖ¶¯ÏÂÔØruntime¼´¿É£¬²»¹ýΪÁËÒ»¸öС³ÌÐò¡¢¡¢×°¸ö¾ÓȻҪ20¶àMBµÄruntime¡£¡£¡£Óе㲻ֵ……
µ«ÊÇÄØ£¬¶Ô±È½Ï´óÐÍ¡¢¸´ÔÓ»òÊôÓÚÄÚ²¿½»Á÷ÀàÐ͵ijÌÐò£¬¿ÉÒÔÓÃÕâ¸ö·½·¨£»ÉõÖÁ£¬Äã¿ÉÒÔÖ»×°ÉÏ×Ö½ÚÂ룬дreadmeÒªÇóÓû§°ÑËùÐèµÄËùÓж«Î÷×°ºÃ¾ÍÐÐÁË!(²»¹ý¹À¼Æ¾Íû¶àÉÙÓû§ÁË)
ºÃÁË£¬ÕâÏÂÄã¾Í²»Óñ»py2exeÖ®ÀàµÄ³ÌÐò¡¢ÅäÖÃÃԻ󣬺úõØÓÃϵͳ×Ô´øµÄpyc°É£¡


Ïà¹ØÎĵµ£º

PythonÓëMicrosoft Office×Ô¶¯»¯²Ù×÷

http://www.cnblogs.com/Jedimaster/archive/2007/02/28/660209.html
¡¡¡¡ÅóÓѵļÒÈË×öÉúÒ⣬ÿÈÕ´Ó¸÷µØ·Öµê´¦ÊÕ¼¯±¨±í£¬È»ºó»ØÈ¥»ã×Ü¡£ÓÉÓÚ²»ÏëÓÃÄÇÖÖ¸´ÔӵĹÜÀíÈí¼þ£¬¾Í½ÐËûдһ¸öС¹¤¾ß¡£ÓÚÊÇËûÕÒµ½ÁËÎÒ£¬ÈÃÎÒÏëÏë°ì·¨¡£
¡¡¡¡PythonÊǸöÁîÈ˾ªÆæµÄ¹¤¾ß£¬¶ø²»½ö½öÊÇÒ»ÖÖÓïÑÔ¡£¶Ô±ÈÀÏÅƵÄPerl£¬¿´ËÆPython²»ÊÇÄÇôµÄ¾«Í¨ ......

python timeÄ£¿éÏê½â

 python µÄÄÚǶtimeÄ£°å·­Ò뼰˵Ã÷
 
Ò»¡¢¼ò½é
  timeÄ£¿éÌṩ¸÷ÖÖ²Ù×÷ʱ¼äµÄº¯Êý
  ˵Ã÷£ºÒ»°ãÓÐÁ½ÖÖ±íʾʱ¼äµÄ·½Ê½:
       µÚÒ»ÖÖÊÇʱ¼ä´ÁµÄ·½Ê½(Ïà¶ÔÓÚ1970.1.1 00:00:00ÒÔÃë¼ÆËãµÄÆ«ÒÆÁ¿),ʱ¼ä´ÁÊÇΩһµÄ
       µÚ¶þÖÖÒÔÊý× ......

Èà easy_install ʹÓôúÀí·­Ç½°²×° Python Ä£¿é

ÀµÓºƣ¨http://laiyonghao.com£©
¹Ø¼ü×Ö£ºpython, easy_install, setuptools, myentunnel, polipo, windows, linux, socks5, http, proxy
ÒòΪһЩÖÚËùÖÜÖªµÄÔ­Òò£¬ÎÒÃÇÓÐЩÍøÕ¾ÎÞ·¨·ÃÎÊ£¬Ôì³ÉÉú»îºÍÉú²úµÄ¾Þ´ó²»±ã¡£ÆäÖжÔÎÒÓ°Ïì±È½Ï´óµÄÒ»¸ö¾ÍÊÇ°²×°Ä³Ð© Python Ä£¿éµÄʱºò£¬easy_install ÎÞ·¨·ÃÎʵ½ÍøÕ¾¡£ÔÚÕâÀï·ÖÏíÈ ......

python ¶ÁhttpС¼Ç

conn = httplib.HTTPConnection(EPG_IP + ":" + HTTP_PORT)
url = FAV_URL_PARTH +"userid=" + USER_ID + FAV_DIR_MODIFY
param = '''<ps100request id="Favorite.Category.modify">
<categoryid>'''+categoryid+'''</categoryid>
<categoryname>'''+categoryname+'''</ ......

»°ËµPython£¨Ò»£©

С°×ºÍС²ËÊÇ´óѧͬѧ£¬Õâ²»¿ìÒª±ÏÒµÁË£¬Á©ÈËÒ»ºÏ¼Æ£¬ÕÒ¸öÅàѵ°àѧµã¶«Î÷£¬Îä×°Ò»ÏÂÍ·ÄÔ£¬Ë³±ã½â¾ö¾ÍÒµÎÊÌâ¡£
“ÄãÃÇÒª±¨Äĸö°à°¡£¿”½Ó´ýËûÃǵÄÄêÇáС½ãÈÈÐĵØÎʵÀ¡£
“ÄãÃÇÕâÀïÄĸö°à×îºÃ£¿”С°×²»¼Ù˼Ë÷µØ˵£¬“µ±È»ÊDZ¨×îºÃµÄ°àÀ²¡£”
“ÎÒÃǹ«Ë¾µÄÅàѵÏîÄ¿¶¼ºÜºÃ”С½ãЦ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ