是否有任何功能可以清除pycharm输出屏幕?

问题描述 投票:0回答:1

os.system('cls')无效。它只是简单地在输出的末尾放置一个方形框

python pycharm
1个回答
0
投票

如果查看os.system功能的文档,则显示为execute the command in a subshell

def system(*args, **kwargs): # real signature unknown
    """ Execute the command in a subshell. """
    pass

这意味着您的主控制台正在接收在子控制台ada中运行的cls命令的输出

© www.soinside.com 2019 - 2024. All rights reserved.