Guest User

Untitled

a guest
May 31st, 2015
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. from time import sleep
  2.  
  3. with open('output.log', 'w', 1) as output:
  4.     for i in range(1, 15):
  5.         output.write('Line #{number}\n'.format(number = i))
  6.         sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment