Commit 1a877bc0 by BellCodeEditor

save project

parent 4d47113f
Showing with 10 additions and 9 deletions
username = "图一" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "831155" # 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能
name = "图一"
passward = "831155"
if name == username and passward == userpassword:
print("登录成功")
esle:
print("登录失败")
\ No newline at end of file
while True:
name = input("输入账号:")
passward = input('输入密码:')
if name == username and passward == userpassword:
print("登录成功")
break
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