raw = [
'http://www.baidu.com/index.html',
'http://www.baidu.com/1.html',
'http://post.baidu.com/index.html',
'http://mp3.baidu.com/index.html',
'http://www.baidu.com/3.html',
'http://post.baidu.com/2.html'
]
new_raw = []
for url in raw:
new_raw.append(url.split('/')[2])
print(max(new_raw))
python找出域名出现次数最多的域名
最新推荐文章于 2020-10-26 17:28:42 发布