安裝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 struct.pack() 將整數轉換為bytes ; while list: str1=list[0] ; 中間內容; list=[1:] #切片 ,遍歷list中的每一個元素,跟for i in list 類似 ; timeit() #計時 Python struct.pack() 將整數轉換為bytes ; while list: str1=list[0] ; 中間內容; list=[1:] #切片 ,遍歷list中的每一個元素,跟for i in list 類似 ; timeit() #計時](https://i0.wp.com/savingking.com.tw/wp-content/uploads/2022/10/20221012095050_42.png?quality=90&zoom=2&ssl=1&resize=350%2C233)






近期留言