demo.py
277 Bytes
# -*- coding: utf-8 -*-
# @Time : 2021/7/28 16:59
# @Author : Ljq
# @File : demo.py
# @Software: PyCharm
"""
"""
import json
import urllib
import urllib.parse
a = {"a":"b","c":"阿三大苏打"}
print(urllib.parse.urlencode(a))
b = "a=b&c=d"
# print(urllib.unquote)