📜  python代码示例中Visual Studio代码的清除输出替代方案

📅  最后修改于: 2022-03-11 14:45:13.208000             🧑  作者: Mango

代码示例1
For Windows
>>> import os
>>> clear = lambda: os.system('cls')
>>> clear()

For Linux the lambda becomes
>>> clear = lambda: os.system('clear')