Commit 73c5e419 by BellCodeEditor

save project

parent 4ca20f17
Showing with 3 additions and 3 deletions
......@@ -95,7 +95,7 @@ def register(): # 注册验证
users_info={}
users_info["password"]=password1
users_info["event"]=["提示一","提示二"]
users[name]=user_info
users[name]=users_info
content = json.dumps(users)
with open("user.txt", "w", encoding="utf-8") as file: # "w"每次写入都覆盖原来的内容
......
{"admin": "admin", "python": "123456", "dfefdvdfvdf": "123456", "\u6211": "123456"}
\ No newline at end of file
{"admin": "admin", "python": "123456", "dfefdvdfvdf": "123456", "\u6211": "123456", "a": {"password": "12", "event": ["\u63d0\u793a\u4e00", "\u63d0\u793a\u4e8c"]}}
\ 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