Commit 26567880 by BellCodeEditor

auto save

parent b3978e18
for i in range():
\ No newline at end of file
i=3
p="ph"
b="1433223"
while True:
if i > 0 :
name=input("用户名")
j=input("密码")
i-=1
if p==name and b==j:
print("登陆成功")
break
if p!=name:
print("输入用户名错误")
print("还有"+str(i)+"次输入")
continue
if b!=j:
print("输入密码错误")
print("还有"+str(i)+"次输入")
else:
print("输入错误,账号已被锁")
exit()
print("hy")
\ No newline at end of file
h = "python"
j = "123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name ==h and password == j:
print("登录成功!")
break
if:
name!=h :
print("用户名错误")
continue
if password != j:
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