Clear screen in shell 清空 shell 的輸出

利用 subprocess 模塊 For OS X, you can use subprocess module and call 'cls' from shell: Python import subprocess as sp sp.call('cls',shell=True) 1 2 3 import subprocess as sp sp . call ( 'cls' , shell = T
相關文章
相關標籤/搜索