Commit c99964ed by BellCodeEditor

save project

parent 4d3d3d71
Showing with 12 additions and 7 deletions
username = "python"
userpassword = "123456"
a=input("请输入用户名")
b=input("请输入用户密码")
if a==username and b==userpassword:
print("密码正确,登陆成功")
else:
print("密码错误,登陆失败")
userpassword = "123456"
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