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))
转载请注明原文地址:https://blackberry.8miu.com/read-32648.html