Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly


clear in python
by admin
 at 2019-03-06 04:29:00.

how to cls or clear in python command line: first you now to tell what is clear to python

import os
clear = lambda: os.system('cls')

now you can

clear()

for clearing the command line

OR

import os

def cls():
    os.system(['clear','cls'][os.name == 'nt'])

cls()