解决办法 https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008464899-What-s-the-smart-commands-execution 1. 在pycharm 界面中 双击 Shift按键 输入 registry 2. 把下图中对那个选项的勾去掉 3. 然后 close就行了