Created
March 27, 2024 13:53
-
-
Save matheusjardimb/809dc7c67628991478201fe8229e790c to your computer and use it in GitHub Desktop.
Comandos úteis para exercício da "animação DVD"
This file contains 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
import os | |
# Comando para limpar o console | |
# 'cls' para Windows e 'clear' para Mac e Linux | |
cmd = "cls" if os.name == "nt" else "clear" | |
os.system(cmd) | |
import time | |
# Comando para 'esperar' 1s antes de seguir para o próximo comando | |
time.sleep(1) # 1 segundo | |
time.sleep(0.5) # meio segundo (500ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment