ΪʲôһÔËÐÐpython³ÌÐòCPUʹÓÃÂʾ͵½100%ÁË£¿
ʹÓõÄpython°æ±¾ÊÇ£ºActivePython-2.6.3.7-win32-x86.msi »áÊÇʲôÔÒò£¿ÈçºÎ½â¾ö£¿Ð»Ð»ÁË
¿ÉÄÜÊÇÖж¾ÁË°É £¬½¨ÒéÏÈɱһ϶¾ È»ºó°É×ÜÏß°ÎÁË ÔÙÖØÆô ÎÒÒ²Óöµ½Ò»ÑùµÄÇé¿ö ΪʲôÓÃActivePython°æ±¾ÄØ£¿ÎÒûÓùý£¬ÄܽéÉÜÒ»ÏÂÂ𣿠²»»áÊdzÌÐòÓÐËÀÑ»·°É¡£¡£¡£ÒýÓà ΪʲôÓÃActivePython°æ±¾ÄØ£¿ÎÒûÓùý£¬ÄܽéÉÜÒ»ÏÂÂ𣿠ActivePython activepython °Ñpython win32 com µÄ¶«Î÷´ò°üÁË£¬python°å±¾²»ÊÇ×îÐÂÒýÓà activepython °Ñpython win32 com µÄ¶«Î÷´ò°üÁË£¬python°å±¾²»ÊÇ×îРÏÖÔÚPythonµÄwin32·¢²¼°æ±¾²»Ò²´ò°üÁËwin32 comÂ¶øÇÒ»¹ÓжÔMark HammondµÄÖÂл´ÇÄØ£º¡°Èç¹û²»ÊÇMark Hammond£¬ÄÇÏÖÔÚPython for win32»¹Ö»ÄÜÊÇPython for dos¡£¡±ÒýÓà ÒýÓà 4 Â¥ notax µÄ»Ø¸´: activepython °Ñpython win32 com µÄ¶«Î÷´ò°üÁË£¬python°å±¾²»ÊÇ×îРÏÖÔÚPythonµÄwin32·¢²¼°æ±¾²»Ò²´ò°üÁËwin32 comÂ¶øÇÒ»¹ÓжÔMark HammondµÄÖÂл´ÇÄØ£º¡°Èç¹û²»ÊÇMark Hammond£¬ÄÇÏÖÔÚPython for win32»¹Ö»ÄÜÊÇPython for dos¡£¡± oh, ûÄÜÓëʱ²¢½ø, ºÜ¾ÃûÓÃactivepython£¬ ÎÒÏÖÔÚ»¹ÊÇÓÃpython 2.5.x ÒÔÇ°activepython ×îа滹ҪÊÕ·Ñ ÓеãÁéÒì°¡ µÈ½á¹û... ÎÒ»¹ÊÇÏÂÔظö¹Ù·½°æ±¾£¡
Ïà¹ØÎÊ´ð£º
ʹÓÃÔ´Îļþ #!/usr/bin/python # Filename : helloworld.py print 'Hello World' ÎÒÔõôҲ¿´²»¶®£¡Ö»ÊÇ×îºóÒ»ÐÐÎÒÖªµÀ~~Ç°ÃæÁ½ÐÐÊÇʲôÒâ˼ÄØ£¿ ½Ì³ÌÉÏ˵Èç¹ûÄãʹÓÃIDLE£¬ÇëʹÓò˵ ......
´úÂë: timeout = 10 socket.setdefaulttimeout(timeout) sock = urllib2.urlopen(url) html = sock.read() Ò»°ãÇé¿öÄÜÐУ¬ÔËÐÐûÎÊÌ⣠......
ÈçÌ⣬ÎÒµÄÖ÷º¯ÊýÊÇ´«Èë²ÎÊýµÄ£¬Æ½Ê±ÔËÐÐʱÊÇÓÃÃüÁîÐд«Èë²ÎÊýÔËÐУ¬ÏÖÔÚÏëµ÷ÊÔ£¬²»ÖªµÀÔõô´«½øÕâ¸öÃüÁîÐеIJÎÊý ¿´ Run ²Ëµ¥ÖÐµÄ Open run Dialog... ÀïÃæÓУ¬Ï¸ÐÄ¿´Ò»Ï ûÓÐÕâÒ»Ïî°¡ sys.argv.append(&qu ......
python ÖеÄpackage ºÍmodule Ôõô×éÖ¯°¡£® /src lsx __init__.py user.py hello.py =================================== ------ ......