标签:net result com edit port 解析 imp etl parse
from urllib.parse import urlparse
url_change = urlparse(‘https://i.cnblogs.com/EditPosts.aspx?opt=1‘)
#ParseResult(scheme=‘https‘, netloc=‘i.cnblogs.com‘, path=‘/EditPosts.aspx‘, params=‘‘, query=‘opt=1‘, fragment=‘‘)
scheme = url_change.scheme #‘https‘
netloc = url_change.netloc #‘i.cnblogs.com‘
标签:net result com edit port 解析 imp etl parse
原文地址:https://www.cnblogs.com/qiaoer1993/p/13087221.html