立即学习:https://edu.csdn.net/course/play/24756/280656?utm_source=blogtoedu
编码代码:
1.
from urllib import parse
data = {'我爱你‘:’张思雨‘}
qs = parse.urlencode(data)
print(qs)
2.
a = '张思雨'
b = parse.quote(a)
print(b)
解码代码
parse.parse_qs(a)
立即学习:https://edu.csdn.net/course/play/24756/280656?utm_source=blogtoedu
编码代码:
1.
from urllib import parse
data = {'我爱你‘:’张思雨‘}
qs = parse.urlencode(data)
print(qs)
2.
a = '张思雨'
b = parse.quote(a)
print(b)
解码代码
parse.parse_qs(a)