擅长:python、mysql、java
<p>阅读<a href="http://code.google.com/appengine/docs/python/taskqueue/tasks.html" rel="nofollow noreferrer">the docs</a>。。。(我的重点!)公司名称:</p>
<blockquote>
<p>params Dictionary of parameters to use
for this Task. Values in the
dictionary may be iterable to indicate
repeated parameters. May not be
specified for a POST request if
payload is already specified. For POST
requests, these params will be encoded
as 'application/x-www-form-urlencoded'
and set to the payload; for all other
methods, the <strong>parameters will be
converted to a query string</strong>. May not
be specified if the URL already
contains a query string and the method
is GET.</p>
</blockquote>
<p><code>zlib.compress</code>生成任意字节字符串。。。但是查询字符串转换将其解释为Unicode!因此,使用任何1字节的编解码器,例如<code>latin-1</code>,来<code>.encode</code>压缩结果,以便通过params的bytestring传递(实际上是二进制文件)<code>.decode</code>的相同编解码器从“unicode”字符串返回到可以<code>decompress</code>的字节字符串。呜。。。你确定压缩对你的应用程序的性能来说是非常重要的,值得你做这一系列奇怪的旋转,或者避免它不是更好吗?-)在</p>