Commit 78be3237 by BellCodeEditor

save project

parent c8312840
Showing with 15 additions and 7 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456"
while True: # 保存在服务器数据库中的用户密码(正确的密码)
name=input("请输入")
pesword=input("请输入")
if name==username and userpassword==pesword:
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456"
i=3
while True: # 保存在服务器数据库中的用户密码(正确的密码)
if i>0:
name=input("请输入")
pesword=input("请输入")
i-=1
if name==username and userpassword==pesword:
print("成功")
break
elif name!=username:
print("用户名错")
continue
else:
else:
print("密码错")
else:
print("被锁定")
exit()
print("欢迎")
# 请用input()实现用户输入账号、密码的功能
......
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