5
方式二:
将.py导出后用TXT打开,代码如下:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Python.File]
[HKEY_CLASSES_ROOT\Python.File\Shell]
[HKEY_CLASSES_ROOT\Python.File\Shell\editwithidle]"MUIVerb"="&Edit with IDLE""Subcommands"=""
[HKEY_CLASSES_ROOT\Python.File\Shell\editwithidle\shell]
[HKEY_CLASSES_ROOT\Python.File\Shell\editwithidle\shell\edit36]"MUIVerb"="Edit with IDLE 3.6 (64-bit)"
[HKEY_CLASSES_ROOT\Python.File\Shell\editwithidle\shell\edit36\command]@="\"C:\\Program Files\\Python36\\pythonw.exe\" -m idlelib \"%L\" %*"