Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 python cmd 中的以前结果中清除屏幕?我想在循环的每一级清除屏幕,我的意思是如何清除结果并打印新的而不是那个?
这个 ?
>>> import os >>> clear = lambda: os.system('cls') >>> clear()