Commit 89f0c508 by BellCodeEditor

save project

parent 8e586b61
Showing with 7 additions and 4 deletions
username = "python"
userpassword = "123456"
x=input("请输入账号:")
y=input("请输入密码:")
if x==username and y==userpassword:
while True:
x=input("请输入账号:")
y=input("请输入密码:")
if x==username and y==userpassword:
print("密码正确")
else:
break
else:
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