Commit 3782a0b8 by BellCodeEditor

save project

parent 6917e23a
Showing with 5 additions and 2 deletions
......@@ -37,6 +37,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()
def get_info(self):
......
{"1": {"password": "1", "event": ["\u63d0\u793a1", "\u63d0\u793a2", "12"]}}
\ No newline at end of file
{"1": {"password": "1", "event": ["\u63d0\u793a1", "12345352"]}}
\ 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