Python3 URL 中文 GBK UTF-8 编码 from urllib.request import quote, unquote url = "https://www.baidu.com/s?wd=code123中国" gbk_url = quote(url, safe=";/?:@&=+$,", encoding="gbk") utf_url = quote(url,