Commit e0adc4e8 by BellCodeEditor

save project

parent 1d2a809e
Showing with 11 additions and 23 deletions
i=5 import turtle
username = "python" pen=turtle.Pen()
userpassword = "123456" a=1
while True: for i in range(345):
if i>0: pen.forward(10+a)
name = input("请输入用户名:") pen.left(91)
password = input("请输入密码:") a = a+1
i-=1 pen.turtle
if name == username and password == userpassword:
print("登录成功!") turtle
break \ No newline at end of file
if name!=username:
print("账号错误")
print("温馨提示剩余"+str(i)+"次")
continue
if password!=userpassword:
print("密码错误")
print("温馨提示剩余"+str(i)+"次")
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