pythontkinter显示表格_详谈Python 窗体(tkinter)表格数据(Treeview)
importtkinterfromtkinterimportttk#导入内部包win=tkinter.Tk()tree=ttk.Treeview(win)#表格tree["columns"]=("姓名","年龄","身高")tree.column("姓名",width=100)#表示列,不显示tree.column("年龄",width=100)tree.column("身高",width=100