xujh0709

Results 4 comments of xujh0709

现在,我卸载了python3,安装了python2,复制粘贴你的程序,运行后报错: http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000 Traceback (most recent call last): File "C:\Users\XuJH\pythondoc\2.py", line 42, in html = html.split(r'')[1] IndexError: list index out of range 请问如何解决?谢谢!

已解决,需要把[1]改为[0]

是不是你用了python3?他写的是python2的程序