Commit 1efeefcd by BellCodeEditor

save project

parent a05a40d1
Showing with 8 additions and 4 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True:
a_1=input ("请输入账号:")# 请用input()实现用户输入账号、密码的功能
a_2=input("请输入密码:")
if a_1==username and a_2==userpassword:
print("登入成功")
break
print("输入错误,请重新输入。")
print("输入正确。")
a_1=input ("请输入账号:")# 请用input()实现用户输入账号、密码的功能
a_2=input("请输入密码:")
if a_1==username and a_2==userpassword:
print("登入成功")
......
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