2 Respostas
+ 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’)
+ 1
ty