Commit 294c8ca2 by BellCodeEditor

save project

parent b810c294
Showing with 25 additions and 0 deletions
n= "python" # 保存在服务器数据库中的用户账号(正确的账号)
p="123456" # 保存在服务器数据库中的用户密码(正确的密码)
T = 3
# 请用input()实现用户输入账号、密码的功能
while T > 0:
print("你还有" + str(T) + "次机会")
n1 = input("请输入您的账号:")
p1 = input("请输入您的密码:")
if(p == p1 and n1 == n):
print("主人,欢迎登陆进来!")
break
elif(p != p1 and n1 == n):
pass
elif(p != p1 and n1 != n):
print("您的账号错误,请重输")
elif(p == p1 and n1 != n):
print("您的账号错误,请重输")
T -= 1
if(T > 0):
print("主人,欢迎登陆进来!")
else:
print("输入次数已用完,您的证件已被绑订")
\ 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