Commit f6e778e9 by BellCodeEditor

save project

parent 0ebb30c5
Showing with 22 additions and 12 deletions
username = "1" # 保存在服务器数据库中的用户账号(正确的账号)
i= 5
username = "1" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "12" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
name=input('你是谁:')
ward=input('密码为....:')
if username == name and userpassword == ward:
print('登录成功!')# 如果用户输入的账号、密码正确,提示登陆成功
break
print('error')
print('welcome')
if username!=name:
print('name重来')
else:
print('ward重来')
if i>0:
name=input('你是谁:')
ward=input('密码为....:')
i-=1
if username == name and userpassword == ward:
print('登录成功!')# 如果用户输入的账号、密码正确,提示登陆成功
break
if username!=name:
print('name重来')
else:
print('ward重来')
else:
print('已锁')
exit()
print('welcome')
......
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