python处理转移字符
import urllib
url = 'https://mp.csdn.net/mdeditor?not_checkout=1#'
urllib.parse.quote(url)
‘https%3A//mp.csdn.net/mdeditor%3Fnot_checkout%3D1%23’
urllib.parse.unquote('https%3A//mp.csdn.net/mdeditor%3Fnot_checkout%3D1%23')
urllib.parse.quote('北京')
‘%E5%8C%97%E4%BA%AC’