Commit 99e4d514 by BellCodeEditor

save project

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