Commit a579cacb by BellCodeEditor

save project

parent 38a80c76
Showing with 12 additions and 22 deletions
i=3 import turtle
userName="python" pen=turtle.Pen()
passWord="123456" screen=turtle.Screen()
while True: screen.bgcolor("light white")
if i>0: distance=1
name=input("请输入账号") pen.speed(100)
perPassWord=input("请输入密码") for i in range(1,300):
i-=1 pen.forward(i)
print("当前还剩下"+str(i)+"次机会") pen.right(91)
if name==userName and perPassWord==passWord: pen.hideturtle()
print("账号密码正确") turtle.done()
break \ No newline at end of file
if name!=userName:
print("账号错误")
continue
if name==userName and perPassWord!=passWord:
print("密码错误")
else:
print("你的账号已被锁定,请带身份证来我公司进行登录")
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