Skip to content

Instantly share code, notes, and snippets.

@hltbra
Created July 16, 2010 14:59
Show Gist options
  • Save hltbra/478459 to your computer and use it in GitHub Desktop.
Save hltbra/478459 to your computer and use it in GitHub Desktop.
# coding: utf-8
import os
import sys
import time
def clear_screen():
clear = sys.platform == 'win32' and 'cls' or 'clear'
os.system(clear)
bonecos = [(r"""
<o>
/\
""", "bota a mão na cabeça que vai começar!", 2),
(r"""
<o_
/\
""", "o rebolation tion", 1.5),
(r"""
_o>
/\
""", "eh o rebolation! (tion)", 1.5),
(r"""
<o/
/\
""", "joga a maozinha pro alto!", 1.5),
(r"""
\o>
/\
""", "que lindo!", 2),
]
for i in range(30):
for boneco, frase, tempo in bonecos:
clear_screen()
print(boneco)
print(frase)
time.sleep(tempo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment