使用 os.system('cls') 清空屏幕上的输出 报错
cls: command not found
然后改为 os.system('clear')
报出另外的错误
environment variable not set.
解决办法如下:
在preference --> Build... --> Console --> Python Console 下面添加一个 环境变量,如下图所示
然后在配置里勾选 emulate terminal in output console
就OK了