擅长:python、mysql、java
<p>有一个误解,你给我们显示的字符串不是json数据,它看起来像一个POST体。你必须用<a href="http://docs.python.org/library/cgi.html#cgi.parse_multipart" rel="nofollow noreferrer">cgi.parse_multipart</a>之类的东西来解析尸体。
然后可以像aschmid00所回答的那样解析json。但是你只分析数据而不是身体。</p>
<p>在这里你可以找到一个<a href="https://stackoverflow.com/a/9810738/1284193">working code that shows how to use cgi.FieldStorage for parsing the POST body</a>。
这个问题也是<a href="https://stackoverflow.com/questions/3236597/parsing-python-html-post-data-from-basehttpserver">answered here.</a>。</p>