标签:result join api from url www url编码 baidu new
from urllib import parse
host = ‘http://api.nnzhp.cn/‘
login_url = ‘/api/login‘
goods_urls = ‘/api/goods‘
new_url = parse.urljoin(host,login_url) # 拼url
result = parse.unquote_plus(‘https://www.baidu.com/s?wd=%E7%99%BE%E6%B5%8B‘) # url解码
s = parse.quote_plus("https://www.baidu.com/s?wd=今天中午吃什么") # url编码
标签:result join api from url www url编码 baidu new
原文地址:https://www.cnblogs.com/wangyujian/p/11930721.html