0

How to use clear screen command in Python?

11th Nov 2017, 7:52 AM
Jyoti Kaurav
Jyoti Kaurav - avatar
6 Antworten
11th Nov 2017, 8:22 AM
qwerty
qwerty - avatar
+ 5
'''This should work for most:''' >>> import os >>> def cls(): . . . os.system('cls' if os.name=='nt' else 'clear') . . . >>> cls() >>>
13th Nov 2017, 11:31 AM
Fox
Fox - avatar
+ 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.
11th Nov 2017, 8:03 AM
Fox
Fox - avatar
+ 2
@ ... sorry it wasn't much helpful and it's my personal choice whether I search or ask. thanks btw
11th Nov 2017, 8:14 AM
Jyoti Kaurav
Jyoti Kaurav - avatar
+ 2
ok
11th Nov 2017, 8:28 AM
Jyoti Kaurav
Jyoti Kaurav - avatar