lzjun567 / python_scripts

一些python相关的演示代码
Apache License 2.0
716 stars 527 forks source link

廖雪峰教程那个 crawler 第146行是不是有错误 #10

Open jiangeel opened 7 years ago

jiangeel commented 7 years ago

if not m.group(3).startswith("http"):

应该是group(2)吧

ghost commented 7 years ago

是的,应该 是group(2)。我自己本地就这样改了

bihuchao commented 7 years ago

是的,应该是

#if not m.group(3).startswith("http"):
if not m.group(2).startswith("http"):