AttributeError:当从 html 中按名称提取值时,“str”对象没有属性“text”

问题描述 投票:0回答:1
python-3.x beautifulsoup
1个回答
0
投票

由于变量

resp
已经是一个字符串,因此无需在
.text
上使用
resp
属性。省略
.text
属性将删除 AttributeError。

© www.soinside.com 2019 - 2024. All rights reserved.