Commit 68e95b02 by BellCodeEditor

auto save

parent 1e72a59a
Showing with 38 additions and 26 deletions
import tkinter
def register():
name=e1.get()
print("点击了注销按键:",name)
root = tkinter.Tk()
root.title("注销")
root.geometry("500x300+700+350")
root.resizable(width=False,height=False)
e = tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=25)
e.place(x=160,y=80)
e1 = tkinter.Entry(root,show='*',font=("宋体",14),bg="light grey",width=25)
e1.place(x=160,y=140)
e2 = tkinter.Entry(root,show='*',font=("宋体",14),bg="light grey",width=25)
e2.place(x=160,y=200)
l = tkinter.Label(root, text="您好,请注销",font=("宋体",14),fg="yellow",bg='green',width=30,height=2)
l.place(x=90, y=20)
ee = tkinter.Label(root, text="用户名:",font=("宋体",14),fg="black")
ee.place(x=70,y=80)
ee1 = tkinter.Label(root, text="密码:",font=("宋体",14),fg="black")
ee1.place(x=100,y=140)
ee2 = tkinter.Label(root, text="确认密码:",font=("宋体",14),fg="black")
ee2.place(x=70,y=200)
button1=tkinter.Button(root,text="注销",fg="black",width=15,command=register)
button1.place(x=150,y=250)
root.mainloop()
\ No newline at end of file
# import tkinter
# def register():
# name=e1.get()
# print("点击了注销按键:",name)
# root = tkinter.Tk()
# root.title("注销")
# root.geometry("500x300+700+350")
# root.resizable(width=False,height=False)
# e = tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=25)
# e.place(x=160,y=80)
# e1 = tkinter.Entry(root,show='*',font=("宋体",14),bg="light grey",width=25)
# e1.place(x=160,y=140)
# e2 = tkinter.Entry(root,show='*',font=("宋体",14),bg="light grey",width=25)
# e2.place(x=160,y=200)
# l = tkinter.Label(root, text="您好,请注销",font=("宋体",14),fg="yellow",bg='green',width=30,height=2)
# l.place(x=90, y=20)
# ee = tkinter.Label(root, text="用户名:",font=("宋体",14),fg="black")
# ee.place(x=70,y=80)
# ee1 = tkinter.Label(root, text="密码:",font=("宋体",14),fg="black")
# ee1.place(x=100,y=140)
# ee2 = tkinter.Label(root, text="确认密码:",font=("宋体",14),fg="black")
# ee2.place(x=70,y=200)
# button1=tkinter.Button(root,text="注销",fg="black",width=15,command=register)
# button1.place(x=150,y=250)
# root.mainloop()
import random
n=random.randint(0,100)
print(n)
if n>89:
print("A")
else:
if n>79 and n<90:
print("B")
else:
if n>69 and n<80:
print("C")
else:
print("D")
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