張乃元tinker繪圖套件&time時間&sleep方法
建構子補充(constructor)
tkinter維基百科
from tkinter import * #下載程式碼,從tkinter輸入所有函式
import time
x=["😏","♑","噢","喔","🈚"]
for i in range(5):
window = Tk() #建構視窗,名為window建構一個房子
window.title('張乃元第%d視窗' %(1+i))
window.geometry('500x500+%d+200' % (300*i))
b1=Label(window,text=x[i],font='Arial 250 bold').pack()
time.sleep(0.1)
window.update()
window.mainloop()
#constructor 建構子
留言
張貼留言