發表文章

周子芯 輸入tkinter繪圖模組

  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...