cmd regedit
在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"
刷新注册表
开始运行里输入
cmd /c taskkill /f /im explorer.exe&&explorer.exe