Commit 433a9bdf by BellCodeEditor

save project

parent 6d4861fd
Showing with 14 additions and 6 deletions
n = "python" # 保存在服务器数据库中的用户账号(正确的账号) n = "1" # 保存在服务器数据库中的用户账号(正确的账号)
p = "123456" p = "1"
N=input("用户名") # 保存在服务器数据库中的用户密码(正确的密码)
P=input("密码")# 保存在服务器数据库中的用户密码(正确的密码) while True:
if (n==N) and (p==P): N=input("用户名")
print("登陆成功") P=input("密码")
if (n==N) and (p==P):
print("登陆成功")
break
if n!=N and p==P:
print("用户名错误")
if n==N and p!=P:
print("密码错误")
print("welcome to bellcode")
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
......
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