from tkinter import *
import random
import time
tk=Tk()
tk.title("Game")
tk.resizable(0,0)#窗口大小不可改变
tk.wm_attributes("-topmost",1)
canvas=Canvas(tk,width=500,height=400,bd=0,highlightthickness=0)#确保画布没有边框
canvas.pack()
tk.update()
canvas.mainloop()#等待事件,主循环
游戏画布