Commit d54d560b by BellCodeEditor

save project

parent 56f03ec2
Showing with 6 additions and 5 deletions
...@@ -2,19 +2,20 @@ i = 3 ...@@ -2,19 +2,20 @@ i = 3
name = "114514" name = "114514"
m = "19191860" m = "19191860"
while True: while True:
if i>0 if i>0:
mame1 = imput("请输入账号") name1 = input("请输入账号")
m1 = imput("请输入账号") m1 = input("请输入账号")
i -=1 i -=1
if name == name1 and m == m1 if name == name1 and m == m1:
print("登陆成功") print("登陆成功")
break break
if name !=name1: if name !=name1:
print("账号输入错误") print("账号输入错误")
print("你还有"=star(i)="次机会!") print("你还有"+str(i)+"次机会!")
continue continue
if m !=m1: if m !=m1:
print("密码输入错误") print("密码输入错误")
print("你还有"+str(i)+"次机会!")
else: else:
print("次数已经耗尽") print("次数已经耗尽")
exit() exit()
......
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