Commit bc3dd825 by BellCodeEditor

auto save

parent 3587c155
Showing with 14 additions and 2 deletions
{"用户名":""}
{"用户名":"jsui"}
{"密码":"123"}
{"确认密码":"1234"}
{"用户名":"jcjzc"}
{"密码":""}
{"确认密码":""}
{"用户名":"jcjzc"}
{"密码":""}
{"确认密码":""}
{"用户名":"jcjzc"}
{"密码":""}
{"确认密码":""}
{"用户名":"jcjzc"}
{"密码":""}
{"确认密码":""}
......@@ -4,7 +4,7 @@ def register():
password1 = d.get()
password2 = e.get()
print("用户输入的信息为:",name,password1,password2)
with open(r'C:\Users\Lenovo\Documents\level3-lesson17-diy1\1.txt','w',encoding='utf-8')as file:
with open(r'C:\Users\Lenovo\Documents\level3-lesson17-diy1\1.txt','a',encoding='utf-8')as file:
file.write('{"用户名":"%s"}\n{"密码":"%s"}\n{"确认密码":"%s"}\n'%(name,password1,password2))
root=tkinter.Tk()
screenwidth = root.winfo_screenwidth()
......
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