擅长:python、mysql、java
<p>您可以尝试:</p>
<pre><code>import json
values = 'random stuff .... \r\n {"data":{"values":[1,2,3]}} more rnandom things'
json_value = json.loads(values[values.index('{'):values.rindex('}') + 1])
print json_value['data'] # {u'values': [1, 2, 3]}
print json_value['data']['values'] # [1, 2, 3]
</code></pre>
<p>但这是危险的,需要相当多的假设,我不确定你在使用哪个框架,瓶子,瓶子,瓶子,有很多,请使用适当的调用<code>POST</code>
根据框架检索值(如果您确实在使用框架)。</p>
<p>我想如果你是单独使用GAE的话,你应该这么做。</p>
<p><a href="https://developers.google.com/appengine/docs/python/tools/webapp/requestclass#Request_get" rel="nofollow">https://developers.google.com/appengine/docs/python/tools/webapp/requestclass#Request_get</a>
<a href="https://developers.google.com/appengine/docs/python/tools/webapp/requestclass#Request_get_all" rel="nofollow">https://developers.google.com/appengine/docs/python/tools/webapp/requestclass#Request_get_all</a></p>