📅  最后修改于: 2022-03-11 14:45:59.123000             🧑  作者: Mango
import os
def clearConsole():
command = 'clear'
if os.name in ('nt', 'dos'): # If Machine is running on Windows, use cls
command = 'cls'
os.system(command)
clearConsole()