Commit 6565d314 by BellCodeEditor

save project

parent 3f448a2c
Showing with 2 additions and 1 deletions
......@@ -92,7 +92,8 @@ def register(): # 注册验证
elif:
user_info={}
user_info["password"]=password1
user_info["event"] = ["1:可以从输入框添加任务""2:表示完成]
user_info["event"] = ["1:可以从输入框添加任务""2:表示完成]
users[name] = user_info
with open("user.txt", "w", encoding="utf-8") as file: # "w"每次写入都覆盖原来的内容
file.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