Commit 720acb9f by BellCodeEditor

save project

parent e1c42000
Showing with 7 additions and 4 deletions
......@@ -5,8 +5,11 @@ while True:# 请用input()实现用户输入账号、密码的功
username1=input("请输入你的账号:")
U=input("请输入你的密码:")
# 如果用户输入的账号、密码正确,提示登陆成功
if username==username1 and userpassword==U:
print("登录成功")
break
\ No newline at end of file
break
if username!=username1:
print("用户名错误,请重新输入")
if userpassword!=U:
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