Commit f6e778e9 by BellCodeEditor

save project

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