Commit 5d3f727c by BellCodeEditor

save project

parent 708a58d2
Showing with 3 additions and 2 deletions
...@@ -3,12 +3,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正 ...@@ -3,12 +3,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
i=3 i=3
while True: while True:
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
print('剩余'=str(i)+'次机会') print('剩余'+str(i)+'次机会')
name=input('请输入用户名:') name=input('请输入用户名:')
password=input('请输入密码:') password=input('请输入密码:')
i=i-1 i=i-1
if i==0: if i==0:
print('机会已用完,帐户密码,请申诉') print('机会已用完,帐户密码,请申诉')
exit()
# 保存在服务器数据库中的用户密码(正确的密码) # 保存在服务器数据库中的用户密码(正确的密码) # 保存在服务器数据库中的用户密码(正确的密码) # 保存在服务器数据库中的用户密码(正确的密码) # 保存在服务器数据库中的用户密码(正确的密码) # 保存在服务器数据库中的用户密码(正确的密码)
if username==name and userpassword==password: if username==name and userpassword==password:
print('登录成功') print('登录成功')
......
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