How do I run commands in PyCharm without having to run the whole script?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-14 02:52:08

问题


I have a Python script with several functions and would like to run different iloc and loc commands to test different things. Since I'm new to PyCharm, I'm not familiar with its different functionalities. How can I run single commands without having to run the whole Python script?

I assume it has to be directly in the Python console. I tried, but it doesn't work.


回答1:


PyCharm has an Execute Line in Console command, the shortcut for which is ALT + SHIFT + E. This will run the selected lines in the Python Console if you have it configured properly.



来源:https://stackoverflow.com/questions/53452185/how-do-i-run-commands-in-pycharm-without-having-to-run-the-whole-script

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!