打开注册表
在HKEY_CLASSES_ROOT\SystemFileAssociations中添加.py\shell\Edit with IDLE\command;
修改HKEY_CLASSES_ROOT\SystemFileAssociations\.py\shell\Edit with IDLE\command
command的值为c:\python27\pythonw.exe c:\python27\Lib\idlelib\idle.pyw -e %1
保存,并刷新;
打开注册表
在HKEY_CLASSES_ROOT\SystemFileAssociations中添加.py\shell\Edit with IDLE\command;
修改HKEY_CLASSES_ROOT\SystemFileAssociations\.py\shell\Edit with IDLE\command
command的值为c:\python27\pythonw.exe c:\python27\Lib\idlelib\idle.pyw -e %1
保存,并刷新;