Created
July 31, 2018 14:06
-
-
Save sgobin/8f363160a2e89e65d71e904889232088 to your computer and use it in GitHub Desktop.
From file to list python / De arquivo txt para uma lista em python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emails = [] | |
arquivos = ['limpo-1.txt','limpo-2.txt','limpo-3.txt','limpo-4.txt','limpo-5.txt'] | |
for arquivo in arquivos: | |
with open(arquivo,'r') as arqLista: | |
for linha in arqLista: | |
emails.append(linha) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment