import tkinter #吳丞傑import進口export出口 class Financial: 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() 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 choice == List[temp].ans: LBd.config(bg='blue',fg='white') def update(): ...
期末考沒有<和>但有Left...https://jay960413.blogspot.com/2026/01/from-tkinter-import-import-random.html
回覆刪除curly brackets標記b和strong沒有https://jay960413.blogspot.com/2025/12/python.html