python之tkinter之button

代碼: from tkinter import * import random root = Tk() color = [「white」, 「black」] for j in range(0, 20): for i in range(0, 20): r = random.randrange(0, 2) action = Button(root, bg=color[r], width=3) acti
相關文章
相關標籤/搜索