import tkinter #輸入tkinter繪圖模組 #財金程式設計602 #小於大於 < 另外大於> 也可以使用字碼 < 十進位> class Financial: #類別用於建構504道金融常識題目 def __init__(self, number, q, a, b, c, d, ans): self.number, self.q, self.ans = number, q, ans self.a, self.b, self.c, self.d = a, b, c, d def check(choice): choice = reply.get() #以字串存'1'...'4' temp = number.get() - 1 #題號 if choice == '1': LBa.config(bg="#a4abc1") if choice == List[temp].ans: LBa.config(bg='blue',fg='white') if choice == '2': LBb.config(bg="#a4abc1") if choice == List[temp].ans: LBb.config(bg='blue',fg='white') if choice == '3': LBc.config(bg="#a4abc1") if choice == List[temp].ans: LBc.config(bg='blue',fg='white') if choice == '4': LBd.config(bg="#a4abc1") if ch...
期末考沒有border也沒有鍵盤事件的<與>: https://penny0610.blogspot.com/2026/01/python.html
回覆刪除curly brackets為b標記嫁入樣式https://penny0610.blogspot.com/2025/12/python.html
https://penny0610.blogspot.com/2025/11/pythontryexcept.html
https://penny0610.blogspot.com/2025/11/pythontkinerreturn.html