urljoin 给缺少域名的网址添加域名

导入

from urllib.parse import urljoin

urljoin('要添加的域名', url)

例如:


猜你喜欢

转载自blog.csdn.net/qq_42336542/article/details/80976929