卓秉璿期末考Math.PI與Math.E放入計算機 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 1月 05, 2025 卓秉璿學習Bro code製作計算機 + 7 8 9 - 4 5 6 * 1 2 3 ÷ 0 . = 刪 π e ** https://www.youtube.com/watch?v=I5kj-YsmWjM Build this JS calculator in 15 minutes! 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言 George2025年1月15日 凌晨4:00完美呈現https://zhuo-1005.blogspot.com/2025/01/mathpimathe.html回覆刪除回覆回覆新增留言載入更多… 張貼留言
PYTHON計算現值PRESENT VALUE程式碼 6月 02, 2025 def computePV(): #python def函數: {} r = float(input('輸入利率: '))#float轉為實數 n = float(input('輸入期數: ')) m = float(input('輸入每期金額: ')) f = float(input('輸入終值: ')) pvif = 1/(1+r)**n pv = (1-pvif)*m/r + f * pvif print('現值等於 ',pv) #前面我們用Javascript這裡python #function: def #{區段} 同一個縮排indent同一個區段 computePV() 閱讀完整內容
整合開發環境IDE的Jupyter編輯Python程式碼 3月 24, 2025 from tkinter import * #從函式庫 tkinter 輸入所有 * 方法 banks=['摩根大通','美國銀行','中國工商','富國銀行','匯豐銀行','巴黎銀行'] def ABC(): #畫圖 define自訂函數 global b1 txt = '' for i in range(len(banks)): txt += banks[i] + ' ' b1=Label(canvas,text=txt,font='Arial 20 bold') b1.pack(side=TOP) def XYZ(): #清除視窗的all所有canvas圖 banks.append('三菱銀行') def kill(): b1.pack_forget() tk = Tk() tk.title("劉任昌python建立tkinter視窗使用者介面") #也可以定義視窗名為 window, root課本都如此習慣 canvas = Canvas(tk, width=400, height=400) canvas.pack() btn1 = Button(tk, text="顯示銀行", command = ABC, bg='black',fg='white').pack(side=LEFT) btn2 = Button(tk, text="增加", command = XYZ).pack(side=LEFT) btn3 = Button(tk, text="刪除", command = kill).pack(side=LEFT) tk.mainloop() 閱讀完整內容
完美呈現https://zhuo-1005.blogspot.com/2025/01/mathpimathe.html
回覆刪除