Created
December 15, 2017 16:55
-
-
Save vmesel/f38eb4911034fd04cadb4526271e5cf1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| arqin = open('arq-teste.txt','r') | |
| arqout = open('arquivo-2','w+') | |
| for l in arqin: | |
| ls = l.split(';') | |
| if ls[0].startswith('aug') == True and ls[1].startswith('Cc') == True: | |
| arqout.write(l) | |
| arqin.close() | |
| arqout.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment