Commit 3708e5c6 by BellCodeEditor

save project

parent cf6423eb
Showing with 8 additions and 1 deletions
...@@ -2,6 +2,13 @@ usename = "奥迪" ...@@ -2,6 +2,13 @@ usename = "奥迪"
userpassword = "123444" userpassword = "123444"
name = input("请输入用户名:") name = input("请输入用户名:")
ward = input("请输入密码") ward = input("请输入密码")
while True:
if usename == name and userpassword == ward: if usename == name and userpassword == ward:
print("登录成功") print("登录成功,欢迎来到贝尔编程")
break
else:
print('你输入的用户名和密码有误')
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