def findUrl2(html):
re1 = r'
http://tuchong.com/
\d+/\d+/|http://\w+(?<!photos).tuchong.com/\d+/'url2list = re.findall(re1,html)
url2lstfltr = list(set(url2list))
url2lstfltr.sort(key=url2list.index)
#print url2lstfltr
return url2lstfltr
代码中
url2lstfltr = list(set(url2list))
url2lstfltr.sort(key=url2list.index)
请问这两句作用是什么,或是python那部分函数&模块内容,怎么用啊
多谢