Commit 3e097998 by BellCodeEditor

save project

parent 2c67f906
Showing with 21 additions and 28 deletions
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好\nXXX",font=("Times",20,"normal"))
pen.hideturtle()
screen=turtle.Screen()
screen.bgcolor("orange")
len=screen.textinput("提示","你想要多大的爱心呢?")
axs=int(len)
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pencolor("yellow")
pen1.begin_fill()
pen1.fillcolor("yellow")
pen1.left(45)
pen1.forward(axs*2)
pen1.circle(axs,180)
pen1.right(90)
pen1.circle(axs,180)
pen1.forward(axs*2)
pen1.end_fill()
turtle.done()
i=2
username = "python"
userpassword = "123456"
while True:
if i>0:
name = input("请输入账号: ")
password = input("请输入密码: ")
i-=1
if name==username and password == userpassword:
print("登录成功!")
break
if name!=username:
print("用户不存在,请重新书入")
continue
if userpasswordus!=userpassword:
print("密码失败,请重新输入")
print("密码错误")
else:
print("你的账户被锁定")
break
print("欢迎来到贝尔编程")
......
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