+ 1
How to use this function to delete particular printed line?
def clearScreen(): if os.name == "nt": os.system("cls") else: os.system("clear")
5 Antworten
+ 2
Try this:
from os import system, name
def clear():
if name == 'nt': # Windows OS
_ = system('cls')
else: # MAC / Linux OS
_ = system('clear')
0
How if I want to delete particular printed line using this function?
0
Sorry Thamizh Araasan , my mistake. I thought you wanted to clear the whole screen...
0
Nativ Weiss. Do you know to clear particular printed line?
0
No... Sorry