安裝pyinstaller若出現
無寫入權限的錯誤
是否安裝成功
使用pip list指令
略改寫的py檔:

打開Anaconda Promopt
用cd指令切換到py檔的目錄
(C:\Python)
執行指令:
pyinstaller -F SavingKingIRR.py

需要耐心等候約2 min
轉exe成功的話
結尾會出現
Building EXE from EXE-00.toc completed successfully.

py檔放在
C:\Python
exe檔則會多建一個dict的子目錄
在C:\Python\dict 底下
exe執行結果

您將輸入n年度末解約金?n=?
待使用者輸入下一筆資料或-9999離開
推薦hahow線上學習python: https://igrape.net/30afN



![Python 進階技巧:海象運算子 (Walrus Operator) 實戰教學 [w_clean for w in words if (w_clean:=w.lower().strip()) and w_clean not in STOPWORDS] Python 進階技巧:海象運算子 (Walrus Operator) 實戰教學 [w_clean for w in words if (w_clean:=w.lower().strip()) and w_clean not in STOPWORDS]](https://i2.wp.com/savingking.com.tw/wp-content/uploads/2026/02/20260210083748_0_a7d9bf.png?quality=90&zoom=2&ssl=1&resize=350%2C233)






近期留言