Commit fdd89ed0 by BellCodeEditor

save project

parent 0a4fa606
Showing with 8 additions and 1 deletions
...@@ -6,10 +6,11 @@ if i > 0: ...@@ -6,10 +6,11 @@ if i > 0:
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
name+=1
i-=1
if name == username and password == userpassword: if name == username and password == userpassword:
break break
print("登录成功!") print("登录成功!")
if name!=username: if name!=username:
print("用户名和密码错误!请重新输入") print("用户名和密码错误!请重新输入")
if password!=userpassword: if password!=userpassword:
...@@ -19,3 +20,9 @@ if i > 0: ...@@ -19,3 +20,9 @@ if i > 0:
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
else: else:
print("你帐号没了") print("你帐号没了")
wait(1)
print("3")
wait(1)
print("2")
wait(1)
print("1")
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