📜  使用 os 模块的 python cls 语句 - Python 代码示例

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

代码示例2
import os
os.system('cls' if os.name == 'nt' else 'clear')