python?

Tags: 右鍵,

python的shell其實挺方便,但有時想要用到idle。一點右鍵發現沒有edit with idle.

這是什麼鬼?下面的方法是講講怎麼新增這個edit with idle.(其實也可以先開啟shell,點open)

工具/原料

python(本文用的python3,win10)

方法/步驟

右鍵點選系統圖標,點選‘執行’

python 右鍵沒有EDIT with IDLE選項怎麼辦

在‘執行’輸入框中輸入‘regedit’

python 右鍵沒有EDIT with IDLE選項怎麼辦

找到‘HKEY_CLASSES_ROOT\SystemFileAssociations’,點開資料夾,往下找,看是否有‘.py’的資料夾

python 右鍵沒有EDIT with IDLE選項怎麼辦

我這裡暫時沒有,所以自己建立一個,命名如下圖,注意py前面有個點(英文標點)

python 右鍵沒有EDIT with IDLE選項怎麼辦

python 右鍵沒有EDIT with IDLE選項怎麼辦

‘.py’右側鍵值不管,‘shell’,'edit'的鍵值均為‘Edit with IDLE’即可

python 右鍵沒有EDIT with IDLE選項怎麼辦

將’command‘的鍵值設定成:c:\python3\pythonw.exe c:\python3\Lib\idlelib\idle.pyw -e %1

注意,因我安裝的是python3.4.3,但在c盤的資料夾是python3,這裡檔案路徑就寫python3,記得改成你自己的路徑,否則無效

python 右鍵沒有EDIT with IDLE選項怎麼辦

注意事項

相關問題答案