Commit 79a559f2 by BellCodeEditor

save project

parent 3fbba649
Showing with 7 additions and 1 deletions
......@@ -5,9 +5,14 @@ while True:
name = input("请输入用户名:")
password = input("请输入密码:")
n-=1
if name == username and password == userpassword:
print("登录成功!")
break
if a!=name:
print("用户名和密码错误!请重新输入")
exit()
print("你还有%s次机会!"%n)
continue
if b!=ps:
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