+ 1

How to use this function to delete particular printed line?

def clearScreen(): if os.name == "nt": os.system("cls") else: os.system("clear")

27th Sep 2020, 9:59 AM
Thamizh Araasan
Thamizh Araasan - avatar
5 Respuestas
+ 2
Try this: from os import system, name def clear(): if name == 'nt': # Windows OS _ = system('cls') else: # MAC / Linux OS _ = system('clear')
27th Sep 2020, 10:06 AM
Nativ Weiss
Nativ Weiss - avatar
0
How if I want to delete particular printed line using this function?
27th Sep 2020, 10:10 AM
Thamizh Araasan
Thamizh Araasan - avatar
0
Sorry Thamizh Araasan , my mistake. I thought you wanted to clear the whole screen...
27th Sep 2020, 10:40 AM
Nativ Weiss
Nativ Weiss - avatar
0
Nativ Weiss. Do you know to clear particular printed line?
27th Sep 2020, 10:56 AM
Thamizh Araasan
Thamizh Araasan - avatar
0
No... Sorry
27th Sep 2020, 11:14 AM
Nativ Weiss
Nativ Weiss - avatar