Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Python.File\shell\EditwithIDLE]
@="&Edit with IDLE"
[HKEY_CLASSES_ROOT\Python.File\shell\EditwithIDLE\command]
@="\"C:\\Python37\\pythonw.exe\" \"C:\\Python37\\Lib\\idlelib\\idle.pyw\" -e \"%1\""
根据自己的python安装位置修改
保存为aa.reg,双击引入即可