Skip to content

Instantly share code, notes, and snippets.

@8dcc
Created September 4, 2021 12:28
Show Gist options
  • Save 8dcc/3830f1c9a126e885a63c74dabe99581d to your computer and use it in GitHub Desktop.
Save 8dcc/3830f1c9a126e885a63c74dabe99581d to your computer and use it in GitHub Desktop.
Python loading thing with sys
# Loading screen for furry
import time, sys
def main():
for n in range(1,10):
sys.stdout.write(f"\r [{'-'*n}{' '*(10-n)}]")
sys.stdout.flush()
time.sleep(0.5)
print("uwu")
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment