Commit d0b5fe75 by BellCodeEditor

save project

parent 8b4372d1
Showing with 17 additions and 12 deletions
username = "python" username = "python"
userpass="54188" # 保存在服务器数据库中的用户账号(正确的账号) userpass="54188" # 保存在服务器数据库中的用户账号(正确的账号)
while True: while True:
sb =input("帐号快点写") if i>0:
isb =input("快点写密码") #请用input()实现用户输入账号、密码的功能 sb =input("帐号快点写")
if sb==username and isb==userpass: isb =input("快点写密码") #请用input()实现用户输入账号、密码的功能
print("对") i-=1
break if sb==username and isb==userpass:
if sb!=username: print("对")
print("错") break
ConnectionErrorco if sb!=username:
if isb!=userpass: print("错")
print("错") continue
if isb!=userpass:
print("错")
else:
print("机会用完了")
exit()
print("欢迎你") print("欢迎你")
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file \ 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