Commit 3e097998 by BellCodeEditor

save project

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