如何在Notepad++執行python  (How to Execute a Python File in Notepad ++?)

開啟 Notepad++. 在選單點選  執行  -> 執行.. (F5).輸入:

C:\Python27\python.exe "$(FULL_CURRENT_PATH)"

然後存檔。並設定快速鍵:我是使用  Ctrl+F5

Note:假如你是 Python 3.4: 輸入 Python34取代 Python27

Note: Add -i if you want the command line window to stay open after the script has finished

文章標籤
全站熱搜
創作者介紹
創作者 silentpower 的頭像
silentpower

沉默的力量SilentPower

silentpower 發表在 痞客邦 留言(0) 人氣(6,888)