hack-tools-en icon indicating copy to clipboard operation
hack-tools-en copied to clipboard

Recommendation

Open cyberpanda opened this issue 4 years ago • 1 comments

You could use something like:

os.system("clear" if os.name != "NT" else "cls")

instead of:

os.system("clear")
os.system("cls")

I like the ASCII-GUI you made 👍

cyberpanda avatar Aug 17 '20 17:08 cyberpanda

I agree, although I would take an approach such as:

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

clear()

ThePythonDev avatar Jul 25 '24 18:07 ThePythonDev