from tkinter import Tk,Canvas from datetime import date,datetime root=Tk() c=Canvas(root,width=800,heigth=800,bg='black') c.back()
谢谢!
@kj123
from tkinter import Tk, Canvas from datetime import date, datetime root = Tk() c = Canvas(root, width=800, height=800, bg='black') # 修正拼写错误,应该是'height' c.pack() # 使用'pack'将Canvas放置到窗口中 root.mainloop() # 启动Tkinter主循环
不是,我自学
现在还要学Python吗
共 5 条回复
谢谢!
@kj123
不是,我自学
现在还要学Python吗