Commit e57d005e by BellCodeEditor

auto save

parent 8d745bb8
Showing with 19 additions and 5 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能
while True :
u = input("账号:")
us = input("密码:")
if u == username and us == userpassword:
print("登入成功")
break
elif u != username:
print("账号错误")
......@@ -2,17 +2,18 @@ username = "python" # 保存在服务器数据库中的用户账号(正确
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能
while Ture :
while True :
u = input("账号:")
us = input("密码:")
if u == username and us == userpassword
if u == username and us == userpassword:
print("登入成功")
break
if u != username :
if u != username:
print("账号错误")
if us != userpassword :
continue
if us != userpassword:
print("密码错误")
print("bilibili干杯")
......
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