python comparing text file - if else printing
问题 I have 4 text files in the following formats keycountry.txt UK USA Germany country.txt Brexit - UK USA UK Relations France win world cup keylink.txt www.abc.com www.ddd.com www.eee.com link.txt www.abc.com www.eee.com The code: import re keycountryfile = "keycountry.txt" countryfile = "country.txt" links = open('links.txt', 'r') links_data = links.read() links.close() keys = open('keylink.txt', 'r') keys_data = keys.read() keys.close() keys_split = keys_data.splitlines() print('LINKS') for