python找出域名出现次数最多的域名

    科技2024-07-21  68

    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))
    Processed: 0.009, SQL: 8