Commit e21aac49 by BellCodeEditor

save project

parent 284857d6
Showing with 7 additions and 7 deletions
......@@ -3,12 +3,13 @@ userpassword = "6" # 保存在服务器数据库中的用户密码(正确
# 请用input()实现用户输入账号、密码的功能
while True:
input_name=input('请输入账号:')
input_password=input('请输入密码:')
name=input('请输入账号:')
password=input('请输入密码:')
if username== input_name and input_password==userpassword:
if username== name and password==userpassword:
print('登录成功')
break
else:
print('账号或者密码输入错误')
print('6 我单扣一个6')
\ No newline at end of file
if name!=username:
print('账号错误')
if password!=userpassword:
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