Commit 2a852649 by BellCodeEditor

save project

parent b810c294
Showing with 26 additions and 0 deletions
u = "p"
s = "1"
i=3
while True:
if i>0:
ua = input("请输入用户名:")
sa = input("请输入密码:")
i=i-1
if ua == u and sa == s:
print("登录成功!")
break
if u!=ua:
print("用户名错误!")
print("用户名错误!+你还有+str(i)+三次机会")
i=i-1
continue
i-=1
if s!=sa:
print("密码错误!")
print("用户名错误!+你还有+str(i)+三次机会")
i-=1
else:
print("滚!")
exit()
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