Python de l'écran clair
Import os
os.system("clear") # Linux - OSX
os.system("cls") # Windows
Clever Crab
Import os
os.system("clear") # Linux - OSX
os.system("cls") # Windows
print('\033[H\033[J', end='')
import os
os.system('clear')
def clear():
# for windows
if name == 'nt':
_ = system('cls')
# for mac and linux(here, os.name is 'posix')
else:
_ = system('clear')
import os
# Windows
os.system('cls')
# Linux
os.system('clear')
os.system('cls' if os.name in ('nt', 'dos') else 'clear') #Works for both windows and linux