Skip to content

Instantly share code, notes, and snippets.

@sgobin
Created July 31, 2018 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgobin/8f363160a2e89e65d71e904889232088 to your computer and use it in GitHub Desktop.
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
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