Commit c897aaae by BellCodeEditor

save project

parent 2e106d7d
Showing with 8 additions and 7 deletions
...@@ -6,9 +6,10 @@ y=input("用户名") ...@@ -6,9 +6,10 @@ y=input("用户名")
m=input("密码") m=input("密码")
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
while True:
if username==y and userpassword==m: if username==y and userpassword==m:
print("登录成功") print("登录成功")
break
else: print("欢迎")
print("登录失败") else:
\ No newline at end of file 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