module ‘urllib‘ has no attribute ‘unquote‘(url解码)
生活随笔
收集整理的這篇文章主要介紹了
module ‘urllib‘ has no attribute ‘unquote‘(url解码)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Python2中,可以這樣做:
>>> print urllib.unquote("%E6%B5%8B%E8%AF%95abc")但是Python3并沒有unquote屬性,要達成一樣的效果,要怎么做呢?
import urllib.parse print(urllib.parse.unquote("%E6%B5%8B%E8%AF%95abc"))?
總結
以上是生活随笔為你收集整理的module ‘urllib‘ has no attribute ‘unquote‘(url解码)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Python list倒序遍历(reve
- 下一篇: cf1051F. The Shortes