url 出现中文问题

"""python 3"""
from urllib.parse import quote
import string
url = "xxx"

url = quote(url, safe=string.printable)

你可能感兴趣的:(url 出现中文问题)