Commit b4f212e4 by BellCodeEditor

save project

parent 9560d3fa
Showing with 19 additions and 4 deletions
username = "python" userneme = "python"
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123456"
while True: while True:
usersname=input("请输入账号:") usersname=input("请输入账号:")
if usersname != username: if usersname != username:
...@@ -13,4 +13,3 @@ while True: ...@@ -13,4 +13,3 @@ while True:
else: else:
print("密码错误,请重新输入") print("密码错误,请重新输入")
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
\ No newline at end of file
# 如果用户输入的账号、密码正确,提示登陆成
\ No newline at end of file
userneme="python"
userpassword="123456"
while True:
usersneme=input("请输入账号:")
if usersneme != userneme:
print("账号错误,请重新输入")
else:
break
while True:
userspassword=input("请输入密码:")
if userspassword != userpassword:
print("密码错误,请重新输入")
else:
break
print("登陆成功,欢迎来到python世界!")
\ 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