Commit 3b381c78 by BellCodeEditor

save project

parent 53c9b5a9
Showing with 5 additions and 2 deletions
......@@ -53,6 +53,9 @@ class Note(): # 便签、笔记
def remove(self):
num = self.v.get()
alist.pop(num)
content = json.dumps(users)
with open("user.txt", "w", encoding="utf-8") as file: # "w"每次写入都覆盖原来的内容
file.write(content)
self.canvas.destroy()
app.show()
with open("user.txt", "r", encoding="utf-8") as f:
......
{"admin": {"password": "admin", "event": ["jdfh"]}}
\ No newline at end of file
{"admin": {"password": "admin", "event": []}}
\ No newline at end of file
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