Commit c06dba33 by BellCodeEditor

save project

parent 26a48c63
Showing with 6 additions and 4 deletions
i=3 i=5
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
while True: while True:
...@@ -7,13 +7,15 @@ while True: ...@@ -7,13 +7,15 @@ while True:
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
a=input("你要输入密码") a=input("你要输入密码")
i-=1 i-=1
if username==name and userpassword==a: if username==name and userpassword==a:
print("登录成功") print("登录成功")
break break
if name == username: if a != userpassword:
if a != userpassword:
print("SB密码写错了") print("SB密码写错了")
print("你个SB还有"+str(i)+"机会")
else: else:
print("SB名字写错了") print("SB名字写错了")
else: else:
......
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