Commit c96c8cc2 by BellCodeEditor

save project

parent 168e1b28
Showing with 4 additions and 1 deletions
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
if i > 0:
name=input("请输入调查v地方") name=input("请输入调查v地方")
password=input("计划经济比较")# 请用input()实现用户输入账号、密码的功能 password=input("计划经济比较")# 请用input()实现用户输入账号、密码的功能
i-=1
if name == username and password == username: if name == username and password == username:
print("成功") print("成功")
...@@ -12,6 +14,7 @@ while True: ...@@ -12,6 +14,7 @@ while True:
elif password!=userpassword: elif password!=userpassword:
print("GYTY") print("GYTY")
exit()
print("gygygytg") print("gygygytg")
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