Google App Engine:打印“self.request.path”

时间:2011-05-05 07:00:55

标签: google-app-engine

当我self.response.out.write(self.request.path)时输出类似于\page\cfg%27%40

如何打印出角色?

1 个答案:

答案 0 :(得分:4)

你做过类似的事情

import urllib2
path = self.request.path
unquoted_path=urllib2.unquote(path)