Commit 5e8af5b4 by BellCodeEditor

save project

parent fa73e795
Showing with 21 additions and 13 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) username = "python"
# 保存在服务器数据库中的用户密码(正确的密码)
userpassword = "123456"
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
eee=input("请输入您的账号:") while True:
aaa=input("请输入您的密码:") eee=input("请输入您的账号:")
if eee==username and aaa==userpassword: aaa=input("请输入您的密码:")
print("输入成功") #如果用户输入的账号、密码正确,提示登录成功
else: if eee==username and aaa==userpassword:
print("账号或密码错误") print("欢迎来到贝尔编程")
break
else:
# 如果用户输入的账号、密码正确,提示登陆成功 print("账号或密码错误")
\ No newline at end of file \ No newline at end of file
i=0
while i<5:
print("悟空")
i = i+1
if i==4:
break
\ 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