Created
July 16, 2010 14:59
-
-
Save hltbra/478459 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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