lst https hui com http fuck com ftp jopa com def flt url return not ur

1
2
3
4
5
6
>>> lst = ['https://hui.com', 'http://fuck.com', 'ftp://jopa.com']
>>> def flt(url):
return not url.startswith('https') and not url.startswith('ftp')
>>> filter(flt, lst)
['http://fuck.com']