Commit 7f3e5d46 by BellCodeEditor

save project

parent 93253b72
Showing with 3 additions and 0 deletions
......@@ -49,6 +49,8 @@ class Note(): # 便签、笔记
self.ent.delete("0", END)
if info != "":
alist.append(info)
content = json.dumps(users)
with open("user.txt","w",encoding"utf8")as file:
self.canvas.create_text(40,self.y,text=info,font=("宋体",11),
anchor=W, fill='#FF9900')
self.select = tkinter.Radiobutton(self.canvas,image=self.box,
......@@ -87,6 +89,7 @@ def register(): # 注册验证
user_info = {}
user_info["password"] = password1
user_info["event"] = ["附近有答复"]
users[name] = user_info
content = json.dumps(users)
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