python运行完成后出现import sys; print(‘Python %s on %s‘ % (sys.version, sys.platform))是什么问题以及解决方法

问题原因:

有时,需要在Pycharm下像IDLE那样在shell下调试脚本,我们可以通过设置run with Python console实现上述目的

解决方法:

1,出现这种问题:
在这里插入图片描述
2,点击进入Edit Configurations
在这里插入图片描述
3,取消掉 Run With Python Console前面的勾勾,然后点apply就可以完成。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43964318/article/details/112657144