Commit d5a26fee by BellCodeEditor

auto save

parent 5b80977c
Showing with 4 additions and 3 deletions
...@@ -37,7 +37,8 @@ class Note(): # 便签、笔记 ...@@ -37,7 +37,8 @@ class Note(): # 便签、笔记
def remove(self): def remove(self):
num=self.v.get() num=self.v.get()
a=alist.pop(num) a=alist.pop(num)
print(a) print(users)
content=json.dumps(users) content=json.dumps(users)
with open ('user.text','w',encoding='utf-8') as file: with open ('user.text','w',encoding='utf-8') as file:
file.write(content) file.write(content)
......
{"admin": "admin", "python": "123456", "hhhhhhh": {"password": "1111", "event": ["hhhhh"]}, "111": {"password": "111", "event": ["hhhhh"]}, "7": {"password": "7", "event": ["hhhhh", "eeeee"]}, "5": {"password": "5", "event": ["eeeee"]}} {"admin": "admin", "python": "123456", "hhhhhhh": {"password": "1111", "event": ["hhhhh"]}, "111": {"password": "111", "event": ["hhhhh"]}, "7": {"password": "7", "event": ["hhhhh", "eeeee"]}, "5": {"password": "5", "event": ["hhhhh"]}}
\ No newline at end of file \ 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