Commit 3c57683d by BellCodeEditor

save project

parent 811b1b01
Showing with 2 additions and 0 deletions
...@@ -5,8 +5,10 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码 ...@@ -5,8 +5,10 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码
password=input("你在狗叫一个试试:")# 请用input()实现用户输入账号、密码的功能 password=input("你在狗叫一个试试:")# 请用input()实现用户输入账号、密码的功能
if name!=username: if name!=username:
print("用户错了") print("用户错了")
continue
if password != userpassword: if password != userpassword:
print("密码错了") print("密码错了")
continue
if name ==username and password == userpassword: if name ==username and password == userpassword:
print("狗叫对了") print("狗叫对了")
break break
......
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