Commit b4f212e4 by BellCodeEditor

save project

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