Commit 0e187beb by BellCodeEditor

save project

parent 548fbef9
Showing with 12 additions and 3 deletions
username="ABC"
userpassword="ABC"
name=input("请输入您的账号:")
password=input("请输入您的密码:")
if name==username and password==userpassword:
while True:
name=input("请输入您的账号:")
password=input("请输入您的密码:")
if name==username and password==userpassword:
print("登陆成功")
break
if name!=username:
print("密码错误,请重新输入")
if password!=userpassword:
print("账号错误,请重新输入")
print("密码或账号错误,请重新输入")
\ No newline at end of file
++ "b/\345\230\273\345\230\273\345\230\273.py"
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