Commit a5398105 by BellCodeEditor

save project

parent c0167a27
Showing with 12 additions and 21 deletions
username = "python" import turtle
userpassword = "123456"
while True: pen=turtle.Pen()
if i=0: distance=1
name = input("请输入用户名:")
password = input("请输入密码:") for i in range(300):
if name == username and password == userpassword: pen.forward(distance)
print("登录成功!") distance+=1
break pen.right(91)
if : pen.hideturtle()
pass turtle.done()
else: \ No newline at end of file
pass name != username!
print("用户名错误,请重新输入!")
print("温馨提示,您还有"sir(i)+"次登录机会")
else:
pass
if password != userpassword!
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