發表文章

目前顯示的是 11月, 2025的文章

周子芯import tkinter #輸入tkinter繪圖模組1124

圖片
  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 = 'bl...

周子芯截取VScode編輯font

圖片
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 choice == List[temp].ans: LBd.config(bg=...