Skip to content

Instantly share code, notes, and snippets.

@erichoco
Last active January 13, 2019 21:01
Show Gist options
  • Save erichoco/00ba04ec8df3062b9158c9522b454c4a to your computer and use it in GitHub Desktop.
Save erichoco/00ba04ec8df3062b9158c9522b454c4a to your computer and use it in GitHub Desktop.
for i in range(10):
filename = 'table_{}.csv'.format(i) # or filename = 'table_%d.csv' % i
with open(filename, 'w') as file:
file.write('this is loop {}'.format(i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment