试试:
~ % ipython
Python 2.7.5 (default, Aug 30 2013, 02:17:18)
Type "copyright", "credits" or "license" for more information.
IPython 0.13.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import urllib
In [2]: print(urllib.unquote('%E5%9F%BA%E9%87%91%E4%BB%A3%E7%A0%812'))
基金代码2
【 在 wuhaochi (oo) 的大作中提到: 】
: 标 题: 求助 python中decodeURL
: 发信站: 水木社区 (Wed Nov 20 10:46:04 2013), 站内
:
: 我从html页面里设置一个cookie variable
:
: $.cooke('A', "中国")
:
: 这个传回到python django后台,就变成了 类似这样的值:
: %E5%9F%BA%E9%87%91%E4%BB%A3%E7%A0%812
:
: 这个如果是在js端,则调用 decodeURL()即可, 但django下怎么做啊?
:
:
: --
:
: ※ 来源:·水木社区 newsmth.net·[FROM: 116.247.85.*]
--
FROM 221.133.239.*