Commit c1dd433c by BellCodeEditor

save project

parent fb9a3ea9
Showing with 14 additions and 6 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
账号=input("请输入正确的账号:")
密码=input("请输入正确的密码:")
# 请用input()实现用户输入账号、密码的功能
if 账号==username and 密码==userpassword :
print("登陆成功")
else:
print("登陆失败")
while True:
name1=input("请输入正确的账号:")
name2=input("请输入正确的密码:")
if name1==username and name2==userpassword :
print("登陆成功!")
print("欢迎来到厕所!!!!!!!!!")
break
if name1!=username :
print("账号错误\nhhh!!!!!\nhhh!!!!!\nhhh!!!!!")
continue
if name2!=userpassword:
print("密码错误\nhhh!!!!\nhhh!!!!\nhhhh!!!!!!")
......
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