Commit 2c81d009 by BellCodeEditor

save project

parent 7231a60b
Showing with 9 additions and 7 deletions
i=3
username = "zzz" # 保存在服务器数据库中的用户账号(正确的账号) username = "zzz" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "wnwn" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "wnwn" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while i>0:
i-=1
name=input("请输入用户名:") name=input("请输入用户名:")
password=input("请输入密码:") password=input("请输入密码:")
if name==username and password==userpassword: if name==username and password==userpassword:
print("登陆成功") print("登陆成功")
break break
if : if name!=username:
print("2b红红火火恍恍惚惚红红火火恍恍惚惚哼哼哼哼哼")
continue
if password!=userpassword:
# 如果用户输入的账号、密码正确,提示陆成功登 print("密码错误")
\ No newline at end of file \ 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