如果你的意思是屏幕上你有解释器提示 >>>你可以做 CTRL + L对 Bash shell 可以帮助。Windows 没有对等的。你可以的

import os
os.system('cls')  # on windows

或者

os.system('clear')  # on linux / os x