Window系统右键菜单增加项
Win+R输入regedit,打开注册表
1.文件夹中右键增加打开cmd命令窗口
在HKEY_CLASSES_ROOT\Directory\Background\shell下依次新建项“在此打开CMD”和子项“command”,
子项command的值为"C:\Windows\System32\cmd.exe" "–cd=%v."注意有引号。
- .py文件右键菜单无“Edit with IDLE”项
编辑HKEY_CLASSES_ROOT\SystemFileAssociations\.py\shell\Edit with IDLE\command项的值为
“C:\mysoft\Python36\pythonw.exe” “C:\mysoft\Python36\Lib\idlelib\idle.pyw” -e “%1”
两个路径注意替换为自己本地python安装的路径。