HTML/CSS/IFRAME鑲入網頁 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 9月 10, 2023 Linear Gradient - Left to Right This linear gradient starts red at the left, transitioning to yellow (to the right): 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言 George2023年11月7日 晚上7:38911有動手做,就是往前跨出一大步!回覆刪除回覆回覆新增留言載入更多… 張貼留言
朱冠宇tkinter繪圖套件time時間sleep方法 5月 09, 2024 程式碼 from tkinter import * #下載程式碼,從tkinter輸入所有函式 import time x = [ ' \U0001F600 ' , ' \U0001F601 ' , ' \U0001F602 ' , ' \U0001F615 ' , ' \U0001F622 ' ] #定義一個串列 y = [] #追蹤特定視窗用途,尚未使用 for i in range ( 5 ): window = Tk () #建構視窗,名為window建構一個房子 window . title ( '朱冠宇python第 %d 視窗' % ( i + 1 )) window . geometry ( '400x400+ %d +100' % ( 400 * i )) b1 = Label ( window , text = x [ i ], font = 'Arial 250 bold' ). pack () time . sleep ( 1 ) window . update () y . append ( window ) #追蹤特定視窗用途,尚未使用 window . mainloop () 閱讀完整內容
朱冠宇eval=evaluate函數calculator美國男生印度女生.調色板 5月 23, 2024 w3schools eval() 美國男生bro code from tkinter import * def button_press(num): global equation_text equation_text = equation_text + str(num) equation_label.set(equation_text) def equals(): global equation_text try: total = str(eval(equation_text)) equation_label.set(total) equation_text = total except SyntaxError: equation_label.set("syntax error") equation_text = "" except ZeroDivisionError: equation_label.set("arithmetic error") equation_text = "" def clear(): global equation_text equation_label.set("") equation_text = "" window = Tk() window.title("劉任昌計算機calculator") window.geometry("500x500") equation_text = "" equation_label = StringVar() label = Label(window, textvariable=equation_label, font=('consolas',20), bg="white", width=24, height=2) label.pack() frame = Frame(w... 閱讀完整內容
911有動手做,就是往前跨出一大步!
回覆刪除