How to clear the interpreter console?

后端 未结 30 2184
自闭症患者
自闭症患者 2020-11-21 18:15

Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff

30条回答
  •  执念已碎
    2020-11-21 18:23

    for the mac user inside the python console type

    import os
    os.system('clear')
    

    for windows

    os.system('cls')
    

提交回复
热议问题