Python 中parse.quote类似JavaScript encodeURI() 函数

  

from urllib import parse
jsRet = 'roleO%2f'
print(parse.unquote(jsRet))
print(parse.quote(jsRet))
输出:

roleO/

roleO%252f
posted on 2018-09-12 14:40  shaomine  阅读(717)  评论(0编辑  收藏  举报