PyCharm单行执行代码 或 运行选中的代码

选中代码,然后 Alt +Shift + E ,

或者,右键,菜单操作如下

原文地址:https://www.cnblogs.com/emanlee/p/15186375.html