Commit b2806c15 by BellCodeEditor

save project

parent 8f659c20
Showing with 8 additions and 4 deletions
username = "金绝紫鸣" # 保存在服务器数据库中的用户账号(正确的账号)
username = "Jjzm" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "hyldwdsj" # 保存在服务器数据库中的用户密码(正确的密码)
name=input("请输入用户名:")
password=input("请输入密码:")
while True:
name=input("请输入用户名:")
password=input("请输入密码:")
if name == username and password == userpassword:
print("登陆成功!")
break
print("请重新输入密码")
elif name!=username:
print("账号不存在")
else:
print("密码错误")
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