URL编码转中文/中文转URL编码
from urllib.parse import unquote, quote url = "search&searchKey=%E9%AB%98%E5%B0%94%E5%A4%AB%E6%B1%BD%E8%BD%A6&area=searchxxnull" print(unquote(url, encoding="utf-8")) url1 = "search&searchKey=高尔夫汽车&area=searchxxnull" print(quote(url1, encoding="utf-8"))

本文来自博客园,作者:黑山老道,转载请注明原文链接:https://www.cnblogs.com/meipu/p/15594494.html

浙公网安备 33010602011771号