Commit bf34adf6 by BellCodeEditor

save project

parent 2eef0e1d
Showing with 22 additions and 9 deletions
username = "python"
userpassword = "123456"
i=10
s="dou"
m="13425"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
print("用户名和密码错误!请重新输入")
print("欢迎来到贝尔编程!")
\ No newline at end of file
if i>0:
s1=input("输入")
m1=input("密码")
i-=1
if s==s1 and m==m1:
print("成功")
break
if s!=s1:
print("帐错误")
print('你还剩'+str(i)+'次机会')
continue
if m!=m1:
print("密错误")
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