Commit da16f879 by BellCodeEditor

save project

parent 7a5cb2a8
import tkinter
root = tkinter.Tk()
root.geometry("400x300+500+300")
root.title("注册")
root.mainloop()
import tkinter
def register():
name = e1.get()
password = e2.get()
password = e3.get()
print("sss",name,password1,password2)
root = tkinter.Tk()
root.title("注册")
root.geometry("400x300+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)
leb = tkinter.Label(root, text='您好!请填写用户信息',font=("宋体",15),fg="red",width=40,height=2)
leb.place(x=0,y=0)
leb1 = tkinter.Label(root, text='用户名',font=("宋体",15),fg="black")
leb1.place(x=60,y=80)
leb2 = tkinter.Label(root, text='密 码',font=("宋体",15),fg="black")
leb2.place(x=60,y=140)
leb3 = tkinter.Label(root, text='确认密码',font=("宋体",15),fg="black")
leb3.place(x=50,y=200)
button = tkinter.Botton(root,text='提交',bg="lightgreen",width=15,command=register)
button.place(x=150,y=250)
root.mainloop()
\ No newline at end of file
import tkinter
root = tkinter.Tk()
root.title("注册")
root.geometry("400x300+500+300")
root.mainloop()
\ No newline at end of file
import func
date=func.new_input()
price=func.sum(date)
print("这位选手的总分为"+str(score))
\ No newline at end of file
def new_input():
total = []
while True:
unit = input('请输入(q退出):')
if unit == 'q':
break
else:
try:
unit = int(unit)
except:
print("请重新输入一个数字")
else:
total.append(unit)
finally:
print("=====================")
return total
def sum(money):
count = 0
for i in money:
count = count + i
return count
price = new_input()
pay = sum(price)
print("您一共消费了" + str(pay) + "元!扫码还是现金呢?")
\ No newline at end of file
import turtle
# 前置
p = turtle.Pen()
# 设置笔的速度
p.speed(1)
# 开始画画
p.pencolor("#F4A460")
p.penup()
p.goto((-240), (-200))
p.pendown()
p.begin_fill()
p.fillcolor("#F4A460")
p.goto(240, (-200))
p.left(90)
p.goto(240, 50)
p.left(90)
p.goto((-240), 50)
p.left(90)
p.goto((-240), (-200))
p.penup()
p.goto((-200), 10)
p.end_fill()
p.pendown()
# 开始画窗户
p.pencolor("#000000")
p.begin_fill()
p.fillcolor("#FFFFFF")
for i in range(4):
p.forward(60)
p.left(90)
p.end_fill()
p.penup()
p.forward(30)
p.left(90)
p.pendown()
p.forward(60)
p.penup()
for i in range(2):
p.left(90)
p.forward(30)
p.left(90)
p.pendown()
p.forward(60)
p.penup()
# 开始画门
p.pencolor("#FFFFFF")
p.goto(60, (-200))
p.begin_fill()
p.pendown()
p.right(180)
p.pendown()
p.forward(150)
p.right(90)
p.forward(75)
p.right(90)
p.forward(150)
p.fillcolor("#FFFFFF")
p.end_fill()
p.right(180)
p.forward(75)
p.penup()
p.left(90)
p.forward(10)
p.pendown()
p.begin_fill()
p.fillcolor("#000000")
p.circle(10)
p.end_fill()
p.penup()
p.goto(-240,50)
p.pendown()
p.setheading(45)
p.pencolor("#808080")
p.begin_fill()
p.fillcolor("#808080")
p.forward(341)
p.right(90)
p.forward(341)
p.end_fill()
turtle.done()
import tkinter
root=tkinter.Tk
root.tltle("注册")
root.geometry("400x320+400+100")
root.mainloop()
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