0
from Tkinter import Tk, Canvas
master = Tk()
w = Canvas(master, width=250, height=200)
w.pack()
w.create_rectangle(0, 0, 100, 100, fill="blue", outline = 'blue')
master.mainloop()
這會創建一個正方形/矩形。我如何創建一個函數,以便創建多個方塊?如何在tkinter的畫布中繪製多個正方形?