Commit 6ddeaf9f by BellCodeEditor

save project

parent 2c16130d
Showing with 25 additions and 5 deletions
...@@ -3,11 +3,6 @@ userpassword = "1" # 保存在服务器数据库中的用户密码(正确 ...@@ -3,11 +3,6 @@ userpassword = "1" # 保存在服务器数据库中的用户密码(正确
while True: while True:
name = input("亲,输入账号:") name = input("亲,输入账号:")
password = input("亲,输入密码:") password = input("亲,输入密码:")
if name == username and password == userpassword:
print("登录成功")
break
print("请重新输入:")
print("欢迎来到格兰芬多公共休息室")
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
......
++ "b/\344\270\215\350\246\201\345\210\240\351\231\244"
i = 5
i = 5
username = "2" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "1" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
if i > 0
name = input("亲,输入账号:")
i=i-1
if name != username:
print("账号错误")
shishi = str(i)
print("你还有"+shishi+"机会")
continue
password = input("亲,输入密码:")
if password != userpassword
print("密码错误")
if name == username and password == userpassword:
print("登录成功")
break
else:
print("拜拜了您内🙋🏿‍♀️🙋🏿‍♂️🙋🏿‍♀️🙋🏿‍♂️🙋🏿‍♀️🙋🏿‍♂️🙋🏿‍♀️🙋🏿‍♂️")
exit()
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