If you mean the screen where you have that interpreter prompt >>>
,
you can do CNTL-L on Bash shell can help.
Windows does not have equivalent. You can do
import os
os.system('cls') #on windows
or
os.system('clear') # on linux / os x
reference:
http://stackoverflow.com/questions/4810537/how-to-clear-the-screen-in-python
本文介绍了在Python中使用os.system('cls')或os.system('clear')清除屏幕的方法,适用于Windows和Linux/OS X系统。
1005

被折叠的 条评论
为什么被折叠?



