Commit ffd223f2 by BellCodeEditor

save project

parent 6b82b8a5
Showing with 8 additions and 5 deletions
a = "python" # 保存在服务器数据库中的用户账号(正确的账号) a = "python" # 保存在服务器数据库中的用户账号(正确的账号)
b = "123456" # 保存在服务器数据库中的用户密码(正确的密码) b = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True while True :
aa = input("用户名") aa = input("用户名")
bb = input("密码") bb = input("密码")
if a==aa b==bb: if a==aa and b==bb:
print("成功") print("成功")
break break
print("错") if a!=aa:
print("请重输入账号")
if b!=bb:
print("请重输入密码")
print("欢迎来到贝尔编程") print("欢迎来到贝尔编程")
# 请用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