Commit 811b1b01 by BellCodeEditor

save project

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