擅长:python、mysql、java
<p>你给出的回答似乎不是gziped<code>response.content</code>将以<a href="https://wiki.python.org/moin/BytesStr" rel="nofollow noreferrer">binary byte-string</a>的形式返回响应,这可能不是您想要的</p>
<p>为了获得纯文本响应,您需要使用<code>response.text</code>。从那里,您应该能够使用<a href="https://docs.python.org/3/library/stdtypes.html#string-methods" rel="nofollow noreferrer">^{<cd3>}</a>在字符串中搜索所需的元素</p>
<p>资料来源:<a href="https://requests.readthedocs.io/en/master/user/quickstart/#response-content" rel="nofollow noreferrer">requests documentation</a></p>