📅  最后修改于: 2022-03-11 14:46:10.442000             🧑  作者: Mango
from tkinter import *
root = Tk()
Lb = Listbox(root)
Lb.grid()
f = open("test.txt","r")
for x in f:
Lb.insert(END,x)
print(x)
f.close()
root.mainloop()