Commit 06672b8c by BellCodeEditor

save project

parent 34c939db
Showing with 9 additions and 3 deletions
i=3
username = "1" username = "1"
userpassward = "2" userpassward = "2"
while True: while True:
if i>0:
name=input("请输入账号:") name=input("请输入账号:")
passward=input("请输入密码:") passward=input("请输入密码:")
i-=1
if name == username and passward == userpassward: if name == username and passward == userpassward:
print("登陆成功") print("登陆成功")
break break
elif name != username: if name != username:
print("账号错误") print("账号错误")
else: if passward != userpassward:
print("密码错误") print("密码错误")
print("错误") else:
print("错误,已死机")
exit()
print("正确") 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