1 #!/usr/bin/env python
2 #coding=utf-8
3
4 filename = raw_input('Enter file name :');
5 filen = open(filename)
6 for eachline in filen:
7 try:
8 print eachline.split('sohu.com')[1];
9 except IndexError:
10 pass
11
12 filen.close()
2 #coding=utf-8
3
4 filename = raw_input('Enter file name :');
5 filen = open(filename)
6 for eachline in filen:
7 try:
8 print eachline.split('sohu.com')[1];
9 except IndexError:
10 pass
11
12 filen.close()