- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
primary_list = tuple([line.strip() for line in open('file1.txt', 'r')])
secondary_list = tuple([line.strip() for line in open('file2.txt', 'r')])
f = open('test.txt', 'w')
users_unique = []
def isUnique(value):
if value not in users_unique:
users_unique.append(value)
return True
else:
return False
def common():
for item in primary_list:
if item is None:
continue
elif item in secondary_list and isUnique(item):
f.write(str(item)+'\r\n')
print 'Complete'
administrator 08.06.2017 03:39 # 0
pl7ofit 12.06.2017 05:15 # 0
roman-kashitsyn 12.06.2017 15:13 # 0
CHayT 15.06.2017 20:23 # 0
Сгинь, нечистая!
administrator 16.06.2017 15:45 # 0