Commit 05d719bf by BellCodeEditor

auto save

parent 215e9d08
Showing with 12 additions and 15 deletions
username=" " import turtle
userpassword=" "
while True: pen = turtle.Pen()
name=input("请输入用户名:") colors=["red","orange","yellow","green"]
password=input("请输入密码:") for i in range(1,300):
if name==username and password == userpassword: pen.forward(i)
print("登录成功!") pen.pencolor(colors[i%4])
break pen.right(91)
if name!=username: # 隐藏画笔,保存画布
print("用户名不存在!请重新输入") pen.hideturtle()
if password!=userpassword: turtle.done()
print("密码输入错误!请重新输入") \ No newline at end of file
print("用户名和密码错误!请重新输入")
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