Commit 1d75d427 by BellCodeEditor

save project

parent f8902b05
Showing with 21 additions and 14 deletions
i=0
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: i+=1
name = input("请输入用户名:") if i>0:
password = input("请输入密码:") print('次数已经用完')
if name == username and password == userpassword: else:
print("登录成功!") while True:
break name = input("请输入用户名:")
if name !=username: password = input("请输入密码:")
print("账号错误")
if password !=userpassword: if name == username and password == userpassword:
print("密码错误") print("登录成功!")
#else: break
print("用户名和密码错误!请重新输入") if name !=username:
print("欢迎来到贝尔编程!") print("账号错误")
\ No newline at end of file if password !=userpassword:
print("密码错误")
else:
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