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
相关文章
相关标签/搜索