但是,有一种更有效的方法可以做到这一点: 您可以像往常一样使用print()命令,并使用
os.system("cls") # For Windows
或
os.system("clear") # For Linux