Commit 5b83a252 by BellCodeEditor

save project

parent 7153742c
Showing with 9 additions and 5 deletions
......@@ -2,7 +2,11 @@ username="wx712514"
userpassword="712514"
name=input("请输入用户名")
word=input("请输入密码")
if username==name and userpassword==word:
print("登陆成功!")
else:
print("失败")
\ No newline at end of file
while True:
if username==name and userpassword==word:
print("登陆成功!")
break
else:
print("失败")
name=input("请输入用户名")
word=input("请输入密码")
\ 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