teslariu

libreria time

May 6th, 2023
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. #  sin título.py        
  5. #  
  6. import time
  7. def borrarPantalla():
  8.     import os
  9.     if os.name == "posix":
  10.         os.system ("clear")
  11.     else:
  12.         os.system ("cls")
  13.  
  14.  
  15. print("Hola")
  16. time.sleep(1)
  17. borrarPantalla()
  18.  
  19. print("Hola amigo")
  20. time.sleep(1)
  21. borrarPantalla()
  22.  
  23. print("Hola amigo mío")
  24. time.sleep(1)
  25. borrarPantalla()
Advertisement
Add Comment
Please, Sign In to add comment