Skip to content

Instantly share code, notes, and snippets.

@balkian
Created April 16, 2015 17:25
Show Gist options
  • Save balkian/ff8baa5fea0b20372453 to your computer and use it in GitHub Desktop.
Save balkian/ff8baa5fea0b20372453 to your computer and use it in GitHub Desktop.
Print progress in python
import sys
# \r is carriage return, writes the following text to the beginning of the line
sys.stdout.write('\r<And your message>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment