我不理解 为什么总是None type object has no attribute findAl

我不理解 为什么总是None type object has no attribute findAll[face]emoji:031.png[/face]

倒数第五行soup.find没有找到符合要求的内容,所以comment结果为None,就有了看到的那句提示,你可以在soup.find后面加print(comment)检查下是不是None。