Commit c6f34d17 by BellCodeEditor

save project

parent b810c294
Showing with 19 additions and 0 deletions
id = "llllll"
pwd = "123789"
count = 0
while True:
id2 = input("请输入你的名字:")
pwd2 = input("请输入密码:")
if id == id2 and pwd == pwd2:
print("欢迎")
break
if id != id2:
print("用户名错误")
count += 1
print("错了" + str(count) + "次")
continue
if pwd != pwd2:
print("密码错误")
count += 1
print("错了" + str(count) + "次")
\ 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