回复: getroot() problem

2011-10-23 Thread 水静流深
rnal entity "http://frux.wikispaces.com/";' 2. ubuntu11.04+python2.6 import lxml.html sfile='http://frux.wikispaces.com/' root=lxml.html.parse(sfile).getroot() it is ok it is so strange thing for me to understand ------ 原始邮件 -- 发件人: "Dave A

Re: getroot() problem

2011-10-23 Thread Dave Angel
On 10/23/2011 09:06 PM, wrote: C:\Documents and Settings\peng>cd c:\python32 C:\Python32>python Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. import lxml.html sfile='ht

getroot() problem

2011-10-23 Thread 水静流深
C:\Documents and Settings\peng>cd c:\python32 C:\Python32>python Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import lxml.html >>> sfile='http://finance.yahoo.com/q/op?s