运行以下Python程序,一定会生成如下图所示的窗体。( )
import tkinter as tk win = tk.Tk() win.geometry("200x120") def a(): win.quit() win.destroy() b = tk.Button(win, text='退出', command=a, width=10, height=2) b.pack(expand=True) win.mainloop()
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。