Skip to content

Instantly share code, notes, and snippets.

@kindlyfire
Created December 3, 2015 05:59
Show Gist options
  • Save kindlyfire/f8396e2b27fd16ddf8f3 to your computer and use it in GitHub Desktop.
Save kindlyfire/f8396e2b27fd16ddf8f3 to your computer and use it in GitHub Desktop.
import time, sys
x = 1
while True:
try:
print x
time.sleep(0.3)
x += 1
except KeyboardInterrupt:
# Sauvegarder ici
print "Bye"
sys.exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment