擅长:python、mysql、java
<p>使用<strong>json</strong>模块将字符串转换为json对象。你知道吗</p>
<p><strong>例如:</strong></p>
<pre><code>import json
h = ["{\"contributors\": null, \"truncated\": false, \"text\": \"RT @itisprashanth: All petitions regarding #jallikattu to be heard by Supreme Court tomorrow. Tomorrow will be the D-Day for all the Youth\u2026\"}"]
for i in h:
v = json.loads(i)
print v["text"]
</code></pre>
<p><strong>输出:</strong></p>
<pre><code>RT @itisprashanth: All petitions regarding #jallikattu to be heard by Supreme Court tomorrow. Tomorrow will be the D-Day for all the Youth…
</code></pre>