Commit 4244bf46 by BellCodeEditor

save project

parent 9acdf46f
import tkinter
root = tkinter.Tk()
root.title("注册")
root.geometry("400x320+500+300")
e1 = tkinter.Entry(root,show=None,font=('宋体',14),bg="light grey",width=18)
e1.place(x=140,y=80)
e2 = tkinter.Entry(root,show='*',font=('宋体',14),width=18)
e2.place(x=140,y=140)
e3 = tkinter.Entry(root,show='*',font=('宋体',14),width=18)
e3.place(x=140,y=200)
lad = tkinter.Label(root, text='您好!请填写注册信息',font=('宋体',15),
fg="black",width=40,height=2,bg="green")
lad.place(x=0,y=0)
lad1= tkinter.Label(root, text='用户名:',font=('宋体',12),fg="black")
lad1.place(x=60,y=80)
lad2= tkinter.Label(root, text='密 码:',font=('宋体',12),fg="black")
lad2.place(x=60,y=140)
lad3 = tkinter.Label(root, text='确认密码:',font=('宋体',12),fg="black")
lad3.place(x=50,y=200)
root.mainloop()
import turtle
pen=turtle.Pen()
distance=5
for i in range(300):
pen.forward(distance)
distance+=1
pen.right(91)
pen.hideturtle()
turtle.done()
\ No newline at end of file
username = "python"
userpassword = "123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
break
if name!=username:
print("用户名不存在!请重新输入")
continue
if password!=userpassword:
print("密码错误!请重新输入")
print("欢迎来到贝尔编程!")
\ No newline at end of file
bro1="刘备"
bro2="关羽"
bro3="张飞"
bros=["刘备"]
for i in range(1,10):
for j in range(1,i+1):
print(j,'*',i,'=',(j*i),end='')
print()
\ 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