Commit a5d8ceb3 by BellCodeEditor

save project

parent d75745bf
Showing with 48 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen.penup()
pen.goto(-100,-200)
pen.write("妈妈我爱你\n妈妈辛苦了",font=("times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(30)
pen1.left(45)
len=screen.textinput("提示","你想要多大的爱心呀")
zhengshu=int(len)
pen1.forward(2*zhengshu)
pen1.circle(zhengshu,180)
pen1.right(90)
pen1.circle(zhengshu,180)
pen1.forward(2*zhengshu)
pen.hideturtle()
turtle.done()
i=3
username="qcy"
userpassword="1234567890"
while True:
if i>0:
name=input("请输入用户名")
password=input("请输入密码")
i-=1
if name==username and password==userpassword:
print("登陆成功")
break
if name!=username:
input("用户名错误请重新出入")
continue
if password!=userpassword:
print("密码错误")
else:
print("zhu")
exit()
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