python 中文的url编码

st = "中标通告"
st = parse.quote(st, encoding="gbk")
print(st)
st = parse.unquote("%D6%D0%B1%EA%CD%A8%B8%E6", encoding="gbk")
print(st)

你可能感兴趣的:(python)