Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÓÃsax °üÀ´½âÎöxml µÄÎÊÌâ ÇëÖ¸½Ì ¼± ¶àл

ÎÒÏëÓÃsax°üÀ´½âÎöxml, ÒªÇóÈçÏÂ:
Python code:

<?xml version="1.0" encoding="UTF-8"?>
<waf>
<policy> acl </policy>
<prot>
<dstip>2.2.2.2</dstip>
<dstip>3.3.3.3</dstip>
<dstport> ......

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

´úÂë:
    timeout = 10
    socket.setdefaulttimeout(timeout)
    sock = urllib2.urlopen(url)
    html = sock.read()
Ò»°ãÇé¿öÄÜÐУ¬ÔËÐÐûÎÊÌ⣬¿ÉÓг£³£»áͻȻ±¨´í
Traceback (most recent call last):
File "/usr/local/lib/python2.5/thr ......

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

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

ûÓÐÕâÒ»Ïî°¡

sys.argv.append("...")

È»ºóÖ±½ÓÔËÐÐ...

run -> run configuration ->

×ó²àÑ¡Ôñpython run ......

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

python ÖеÄpackage ºÍmodule Ôõô×éÖ¯°¡£®
/src
  lsx
      __init__.py
      user.py
  hello.py
===================================
-----------hello.py-------------
from lsx import user
if __name__ == '__main__':
  & ......

ΪʲôһÔËÐÐpython³ÌÐòCPUʹÓÃÂʾ͵½100%ÁË£¿

ʹÓõÄpython°æ±¾ÊÇ£ºActivePython-2.6.3.7-win32-x86.msi »áÊÇʲôԭÒò£¿ÈçºÎ½â¾ö£¿Ð»Ð»ÁË
¿ÉÄÜÊÇÖж¾ÁË°É  £¬½¨ÒéÏÈɱһ϶¾ È»ºó°É×ÜÏß°ÎÁË  ÔÙÖØÆô  ÎÒÒ²Óöµ½Ò»ÑùµÄÇé¿ö

ΪʲôÓÃActivePython°æ±¾ÄØ£¿ÎÒûÓùý£¬ÄܽéÉÜÒ»ÏÂÂð£¿

²»»áÊdzÌÐòÓÐËÀÑ­»·°É¡£¡£¡£

ÒýÓÃ
ΪʲôÓÃActivePython°æ±¾Ä ......

pythonµ÷ÊÔ

¸Õ¿ªÊ¼Ñ§Ï°£¬ÎÒÏÖÔÚÓõıàÒëÆ÷ÊÇUliPad£¬
ÇëÎʸ÷룬PythonÄܹ»µ¥²½µ÷ÊÔÂð£¬Ôõôµ÷ÊÔ¡£¶àл¡£

ÏÖÔÚÔÚ¸÷·ÖÖ§²åprintÀ´¿´Á÷³Ì£¬ÊµÔÚÌ«ÀÛÁË¡£- -£¡
ÓÃpydev»òÕßpyscripterµ÷ÊԱȽϷ½±ã

¿ÉÒÔÊÔÒ»ÏÂScript.NET£¬Ö§³ÖPythonµ÷ÊÔ

IPython!  You know?

ÒýÓÃ
ÓÃpydev»òÕßpyscripterµ÷ÊԱȽϷ½±ã
ͬÒâ ......
×ܼǼÊý:175; ×ÜÒ³Êý:30; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [15] [16] [17] [18] 19 [20] [21] [22] [23] [24]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ