This commit is contained in:
dengrb1 2023-04-24 22:18:10 +08:00 committed by GitHub
parent 5aaff06352
commit 16dbdf2072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
reg.pyw Normal file
View File

@ -0,0 +1,25 @@
from tkinter import *
from tkinter import messagebox, ttk
root = Tk()
e1 = ttk.Entry(root)
e2 = ttk.Entry(root)
l1 = ttk.Label(root, text='用户名:')
l2 = ttk.Label(root, text='密码:')
def ok():
input_username = e1.get()
input_password = e2.get()
if input_username and input_password != None:
with open('password.md','w'):
pass
pass
else:
pass
pass
root.mainloop()