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

ΪʲôһÔËÐÐ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 ×îа滹ҪÊÕ·Ñ

ÓеãÁéÒì°¡
µÈ½á¹û...

ÎÒ»¹ÊÇÏÂÔظö¹Ù·½°æ±¾£¡


Ïà¹ØÎÊ´ð£º

python½Ì³ÌÖÐʹÓÃÔ´ÎļþµÄÎÊÌâ~~

ʹÓÃÔ´Îļþ

#!/usr/bin/python
# Filename : helloworld.py
print 'Hello World'

ÎÒÔõôҲ¿´²»¶®£¡Ö»ÊÇ×îºóÒ»ÐÐÎÒÖªµÀ~~Ç°ÃæÁ½ÐÐÊÇʲôÒâ˼ÄØ£¿
½Ì³ÌÉÏ˵Èç¹ûÄãʹÓÃIDLE£¬ÇëʹÓò˵ ......

python ÅÀÈ¡ÍøÒ³ÊdzöÏֵĴíÎó

´úÂë:
    timeout = 10
    socket.setdefaulttimeout(timeout)
    sock = urllib2.urlopen(url)
    html = sock.read()
Ò»°ãÇé¿öÄÜÐУ¬ÔËÐÐûÎÊÌ⣠......

³õѧPython£¬ÓÃEclipse+pydev£¬µ÷ÊÔʱÔõô´«Èë²ÎÊý

ÈçÌ⣬ÎÒµÄÖ÷º¯ÊýÊÇ´«Èë²ÎÊýµÄ£¬Æ½Ê±ÔËÐÐʱÊÇÓÃÃüÁîÐд«Èë²ÎÊýÔËÐУ¬ÏÖÔÚÏëµ÷ÊÔ£¬²»ÖªµÀÔõô´«½øÕâ¸öÃüÁîÐеIJÎÊý
¿´ Run ²Ëµ¥ÖÐµÄ Open run Dialog... ÀïÃæÓУ¬Ï¸ÐÄ¿´Ò»ÏÂ

ûÓÐÕâÒ»Ïî°¡

sys.argv.append(&qu ......

python ÖеÄpackage ºÍmodule Ôõô×éÖ¯°¡£®

python ÖеÄpackage ºÍmodule Ôõô×éÖ¯°¡£®
/src
  lsx
      __init__.py
      user.py
  hello.py
===================================
------ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ