import tkinter
root=tkinter.Tk()
root.title('占劉夢秋的Pyton表單')
root.geometry('800x600')
import time
while True:
timestr = time.strftime("%H:%M:%S")
lb1 = tkinter.Label(root,text=timestr,fg='blue',font=("黑體",15))
lb1.place(relx=0.8,rely=0)
time.sleep(1)
root.update_idletasks()
lb1.pack_forget()
root.mainloop()
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/284834.html
上一篇:protobuf生成問題
下一篇:請教,這段代碼是否存在問題?