Commit 1634276a by BellCodeEditor

save project

parent b009c0fe
Showing with 5 additions and 2 deletions
...@@ -6,12 +6,15 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码 ...@@ -6,12 +6,15 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码
if name == username and password ==userpassword: if name == username and password ==userpassword:
print("登陆成功!") print("登陆成功!")
break break
print("错了,重输!") if name != username:
print("用户错了,重输!")
if password != password:
print("用户密码,重输!")
# 请用input()实现用户的功能 # 请用input()实现C的功能
......
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