代码如下:
from tkinter import *
def show():
print("作品:%s" % e1.get())
print("作者:%s" % e2.get())
root = Tk()
Label(root, text="作品:").grid(row=0, column=0)
Label(root, text="作者:").grid(row=1, column=0)
e1 = Entry(root)
e2 = Entry(root)
e1
代码如下:
from tkinter import *
def show():
print("作品:%s" % e1.get())
print("作者:%s" % e2.get())
root = Tk()
Label(root, text="作品:").grid(row=0, column=0)
Label(root, text="作者:").grid(row=1, column=0)
e1 = Entry(root)
e2 = Entry(root)
e1