安裝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 如何用pandas.Series.nsmallest() 找到n個與target差距最小的index?再從中找到距離idxmax最近的index?避免誤抓sidelobes的index? targetIdx = (serMean-target_value).abs().nsmallest(n).index.tolist() ;Series切片: .loc[標籤名1:標籤名2] (會含標籤名2) ; .iloc[位置1:位置2] (不含位置2) Python 如何用pandas.Series.nsmallest() 找到n個與target差距最小的index?再從中找到距離idxmax最近的index?避免誤抓sidelobes的index? targetIdx = (serMean-target_value).abs().nsmallest(n).index.tolist() ;Series切片: .loc[標籤名1:標籤名2] (會含標籤名2) ; .iloc[位置1:位置2] (不含位置2)](https://i2.wp.com/savingking.com.tw/wp-content/uploads/2023/02/20230222082954_53.png?quality=90&zoom=2&ssl=1&resize=350%2C233)






近期留言