Commit 2d4d3641 by BellCodeEditor

save project

parent cd404f35
Showing with 10 additions and 7 deletions
username = "python"
userpassword = "123456"
a=input("用户账号:")
b=input("账号密码:")
if a==username and b==userpassword:
print("登陆成功!")
else:
print("密码错误")
\ No newline at end of file
while True:
a=input("用户账号:")
b=input("账号密码:")
if a==username and b==userpassword:
print("登陆成功!")
break
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