Commit b5fea85c by BellCodeEditor

save project

parent 021be1ff
Showing with 95 additions and 6 deletions
......@@ -2,9 +2,99 @@ username = "超激竞斗场" # 保存在服务器数据库中的用户账号
userpassword = "50129" # 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能
gn=input("请用户输入账号:")
gp=input("请输入密码:")
# 如果用户输入的账号、密码正确,提示登陆成功
if username==gn and userpassword==gp:
print("登录成功")
\ No newline at end of file
while True:
gn=input("请用户输入账号:")
gp=input("请输入密码:")
# 如果用户输入的账号、密码正确,提示登陆成功
if username==gn and userpassword==gp:
print("登录成功")
break
print('用户名或密码错误,请重新输入!')
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