2 Antworten
+ 4
import os
def clear():
os.system('cls' if os.name=='nt' else 'clear')
clear()
If you do it as lambda it will return/display zero
https://stackoverflow.com/questions/517970/how-to-clear-the-interpreter-console
+ 2
You can use os.system('cls') to use system functions like that... but it would depend on your environment if it works or not.