擅长:python、mysql、java
<p>它只是一个转义字符,请考虑使用ast库将其解析为对象。你知道吗</p>
<blockquote>
<p>literal_eval:</p>
<p>Safely evaluate an expression node or a Unicode or Latin-1 encoded
string containing a Python literal or container display.</p>
</blockquote>
<pre><code>import ast
st = "{\"AudienceRefiner\":{\"ItemCount\":0}}"
obj = ast.literal_eval(st)
print (obj)
>>> {'AudienceRefiner': {'ItemCount': 0}}
</code></pre>
<p>有关它的更多信息,请阅读<a href="https://docs.python.org/2/library/ast.html#ast.literal_eval" rel="nofollow noreferrer">ast.literal_eval</a></p>