本站改版新增arduino频道
def geturlhost(url): try: proto, dummy, host, path = url.split("/", 3) #print("proto "+proto) #print("dummy "+dummy) #print("host "+host) #print("path "+path) return host except ValueError: proto, dummy, host = url.split("/", 2) path = "" return host
如:http://www.xxx.com/xxx/123.php
结果:www.xxx.com
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0096061229705811 seconds