0
How to use clear screen command in Python?
6 Respuestas
+ 11
+ 9
@Jyoti You shouldn't ask duplicated questions.
Here is the answer: https://stackoverflow.com/questions/4810537/how-to-clear-the-screen-in-JUMP_LINK__&&__python__&&__JUMP_LINK
+ 5
'''This should work for most:'''
>>> import os
>>> def cls():
. . . os.system('cls' if os.name=='nt' else 'clear')
. . .
>>> cls()
>>>
+ 3
@ -- The link you've provided is not working for me. Perhaps it's because I'm on a PC rather than a mobile device. Maybe we'll get confirmation from another user.
+ 2
@ ... sorry it wasn't much helpful and it's my personal choice whether I search or ask. thanks btw
+ 2
ok