Commit 99e4d514 by BellCodeEditor

save project

parent 1d51ea16
Showing with 17 additions and 10 deletions
i=5
name = "p"
password = "6"
while True:
n=input('请输入账号')
p=input('请输入密码')
if n==name and p==password:
print('登录成功')
break
if n!=name:
print('账号错误')
if p!=password:
print('密码错误')
while True:
if i>0:
n=input('请输入账号')
p=input('请输入密码')
i-=1
if n==name and p==password:
print('登录成功')
break
if n!=name:
print('账号错误')
if p!=password:
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