Commit f6e778e9 by BellCodeEditor

save project

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