Commit 55ffd1a7 by BellCodeEditor

auto save

parent 1acf26e5
Showing with 6 additions and 1 deletions
小兰:12本小丽:11本小丽:11本
小丽:11本
小丽:11本
...@@ -4,6 +4,8 @@ def register(): ...@@ -4,6 +4,8 @@ def register():
password1 = d.get() password1 = d.get()
password2 = e.get() password2 = e.get()
print("用户输入的信息为:",name,password1,password2) print("用户输入的信息为:",name,password1,password2)
with open(r'C:\Users\Lenovo\Documents\level3-lesson17-diy1>','a',encoding='utf-8')as file:
file.write('%d'%name)
root=tkinter.Tk() root=tkinter.Tk()
screenwidth = root.winfo_screenwidth() screenwidth = root.winfo_screenwidth()
screenheight = root.winfo_screenheight() screenheight = root.winfo_screenheight()
...@@ -20,7 +22,7 @@ d=tkinter.Entry(root,show="*",font=("宋体",14),width=18) ...@@ -20,7 +22,7 @@ d=tkinter.Entry(root,show="*",font=("宋体",14),width=18)
d.place(x=130,y=100) d.place(x=130,y=100)
e=tkinter.Entry(root,show="*",font=("宋体",14),width=18) e=tkinter.Entry(root,show="*",font=("宋体",14),width=18)
e.place(x=130,y=140) e.place(x=130,y=140)
f=tkinter.Label(root,text="您好!请填写注册信息",font=("宋体",15),fg="red") f=tkinter.Label(root,text="您好!请填写注册信息",font=("宋体",15),fg="black",width=40,height=2,bg="red")
f.place(x=0,y=0) f.place(x=0,y=0)
g=tkinter.Label(root,text="账号 :",font=("宋体",14)) g=tkinter.Label(root,text="账号 :",font=("宋体",14))
g.place(x=50,y=60) g.place(x=50,y=60)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment