This code won't work for me:
import os
print('cls method')
os.system('cls' if os.name == 'nt' else 'clear')
print('chr method')
print(chr(27) + "[2J")
Output:
(pasting the log directly deletes "|?|")
cls method
|?|chr method
This code won't work for me:
import os
print('cls method')
os.system('cls' if os.name == 'nt' else 'clear')
print('chr method')
print(chr(27) + "[2J")
Output:
(pasting the log directly deletes "|?|")
cls method
|?|chr method
bro you just need to type in python console:-
import os
os.system('cls')