📜  python clear screen windows and linux - Python代码示例

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

代码示例2
os.system('cls' if os.name in ('nt', 'dos') else 'clear') #Works for both windows and linux