打开注册表,在HKEY_CLASSES_ROOT\SystemFileAssociations中添加.py\shell\Edit with IDLE\command(右键 ->‘新建’ ->项  逐层添加文件夹)

将HKEY_CLASSES_ROOT\SystemFileAssociations\.py\shell\Edit with IDLE\command中

command的值设置为"D:\Python27\pythonw.exe" "D:\Python27\Lib\idlelib\idle.pyw" -e "%1"

             python右键不显示IDLE     python右键不显示IDLE

      右击.py文件,出现Edit with IDLE,大功告成。

相关文章: