Commit 12f1181b by BellCodeEditor

auto save

parent 308b06ef
Showing with 25 additions and 8 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) zh = "王" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) mm = "13579" # 保存在服务器数据库中的用户密码(正确的密码)
sycs = '5'
while True:
# 请用input()实现用户输入账号、密码的功能
xm = input('请输入姓名')
ia = input('请输入密码')
# 请用input()实现用户输入账号、密码的功能 if zh == xm and mm == ia:
print('登录成功!')
break
if zh != xm:
# 如果用户输入的账号、密码正确,提示登陆成功 print('用户名不存在,请重新输入!')
\ No newline at end of file continue
if mm != ia:
print('密码输入有误,请重新输入!')
print('欢迎来到贝尔编程')
# 如果用户输入的账号、密码正确,提示登陆成功
# if zh == xm and mm == ia:
# print('登录成功!')
# else:
# sycs - 1
# print('登录失败!还剩' + sycs + '次')
# if sycs == 0:
# print('失败')
\ No newline at end of file
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