Commit bf8731e3 by BellCodeEditor

save project

parent a5b05506
Showing with 7 additions and 7 deletions
......@@ -2,18 +2,17 @@ c= "python" # 保存在服务器数据库中的用户账号(正确的账号
d= "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
a=input('你的账号:')
b=input('你的密码:')
# 请用input()实现用户输入账号、密码的功能
if c==a and d==b:
print('登录成功!')
break
if c!=a:
print('账号不存在')
else:
b=input('你的密码:')
if d!=b:
print('密码错误')
if c==a and d==b:
print('登录成功!')
break
# 如果用户输入的账号、密码正确,提示登陆成功
\ 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