Commit 7b1d93f2 by BellCodeEditor

save project

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