Commit 9c862d61 by BellCodeEditor

auto save

parent 0e1fa826
import tkinter import tkinter
from tkinter import messagebox from tkinter import messagebox
import json import
with open("user.txt", "r", encoding="utf-8") as f: with open("user.txt", "r", encoding="utf-8") as f:
info = f.read() info = f.read()
...@@ -40,6 +40,8 @@ def login(): # 登录验证 ...@@ -40,6 +40,8 @@ def login(): # 登录验证
pwd = users.get(name) pwd = users.get(name)
if pwd == password: if pwd == password:
messagebox.showinfo("成功", "登录成功") messagebox.showinfo("成功", "登录成功")
import my_client
my_client.Note
else: else:
messagebox.showwarning("错误", "用户名或密码错误!") messagebox.showwarning("错误", "用户名或密码错误!")
......
{"admin": "admin", "python": "123456"} {"admin": "admin", "python": "123456", "\u4f60\u7239": "\u712f"}
\ 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