在pycharm上运行程序时突然出现如下报错: 即pycharm无法连接到console控制台。 解决方法: 选择run->edit configurations: 取消run with python console的勾选即可