os.system('cls')无效。它只是简单地在输出的末尾放置一个方形框
如果查看os.system功能的文档,则显示为execute the command in a subshell。
os.system
execute the command in a subshell
def system(*args, **kwargs): # real signature unknown """ Execute the command in a subshell. """ pass
这意味着您的主控制台正在接收在子控制台ada中运行的cls命令的输出
cls