+ 2

How to clear python console

How do i clear a python console while its running after a short delay?

16th Dec 2020, 9:24 PM
okokok
okokok - avatar
2 Antworten
+ 2
you cant, but you can call platform specific code/command/escape sequence using os/subprocess modules an example: import platform as p import os import time as t def delayClsCon(sec): t.sleep(sec) if p.system() == ‘Windows’: os.system(‘cls’) else: os.system(‘clear’)
16th Dec 2020, 9:39 PM
Flash
+ 1
ty
17th Dec 2020, 10:21 PM
okokok
okokok - avatar