Commit bdb2b0d0 by BellCodeEditor

save project

parent 17ff2e43
Showing with 6 additions and 2 deletions
...@@ -6,6 +6,10 @@ while True: ...@@ -6,6 +6,10 @@ while True:
name=input("请输入用户名:") name=input("请输入用户名:")
password=input("请输入密码:") password=input("请输入密码:")
if name==userpassward and password==userpassward: if name==userpassward and password==userpassward:
print("登录成功") print("登录成功")
break
if name !=username:
print("用户名不存在,请重新输入")
if password !=userpassward:
print("密码输入用误,请重新输入")
turtle.done() turtle.done()
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