Skip to content

學習更多的CLI知識並且加入gpt的應用來做個gpa的計算器

Notifications You must be signed in to change notification settings

mario3443/gpa-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpa-simulator - GPA 成績模擬計算器

學習背景

這個專案是我想深入學習CLI工具開發時做的練習作品。之前有做過一個簡單的CLI專案,但覺得還不夠熟悉,就想做一個比較有結構、能處理檔案的模擬器來加強練習。剛好自己平常也會算GPA,所以就決定做這個GPA模擬器,當作實作練習用。

功能介紹

  • 可以輸入課程、學分和成績來計算目前所擁有的GPA

image

  • 可以觀看和刪除目前所設置之課程

image

image

  • 可以模擬如果某科成績改變後的狀況

image

  • 會將檔案存入json檔案中,重開後照樣存在

image

  • 支援使用導入ChatGPT來分析目前課表,來給你建議(需要設定API金鑰)

image

如何使用

先clone此專案到你的資料夾當中

然後設置一個檔案為.env後放入以下資訊

chatgpt_apikey = 你的chatgpt_apikey

隨後即可以啟動python主程式

python main.py

學習或利用到的程式

Python (用來製作CLI的介面)

json (用來編輯和儲存成績資料)

openai-api (用來連接chatgpt去評論成績)

About

學習更多的CLI知識並且加入gpt的應用來做個gpa的計算器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages