Commit 1d51ea16 by BellCodeEditor

save project

parent d24dd52a
Showing with 8 additions and 4 deletions
username = "p" name = "p"
userpassword = "6" password = "6"
while True: while True:
n=input('请输入账号') n=input('请输入账号')
p=input('请输入密码') p=input('请输入密码')
if n==username and p==userpassword: if n==name and p==password:
print('登录成功') print('登录成功')
break break
print('密码或账号错误,请重新输入') if n!=name:
print('账号错误')
if p!=password:
print('密码错误')
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