-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed as not planned
Labels
Description
Simular un "bloqueo" de pantalla educativo (para tu propio dispositivo)
import time
from datetime import datetime
def fake_lock():
print("🔒 Simulador de bloqueo (solo demostración)")
tiempo = int(input("¿Cuántos segundos de bloqueo? (Máx 10): "))
if tiempo > 10:
print("¡Demasiado tiempo! Usando 10s por seguridad.")
tiempo = 10
for i in range(tiempo, 0, -1):
print(f"⏳ Desbloqueo en {i}s...", end="\r")
time.sleep(1)
print("\n¡Dispositivo desbloqueado! 🎉")
print(f"Hora actual: {datetime.now().strftime('%H:%M:%S')}")
if name == "main":
fake_lock()
Reactions are currently unavailable