Commit c0d1a4e4 by BellCodeEditor

save project

parent 8b0ae4e4
Showing with 1 additions and 1 deletions
...@@ -28,7 +28,7 @@ def register(): # 注册验证 ...@@ -28,7 +28,7 @@ def register(): # 注册验证
elif password1!=password2: elif password1!=password2:
messagebox.showwarning('警告''两次密码不同') messagebox.showwarning('警告''两次密码不同')
else: else:
users=[name] = password1 users[name] = password1
content = json.dumps(users) content = json.dumps(users)
with open('user.txt','w',encoding='utf-8') as f: with open('user.txt','w',encoding='utf-8') as f:
f.write(content) f.write(content)
......
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