Commit d0b5fe75 by BellCodeEditor

save project

parent 8b4372d1
Showing with 8 additions and 3 deletions
username = "python" username = "python"
userpass="54188" # 保存在服务器数据库中的用户账号(正确的账号) userpass="54188" # 保存在服务器数据库中的用户账号(正确的账号)
while True: while True:
if i>0:
sb =input("帐号快点写") sb =input("帐号快点写")
isb =input("快点写密码") #请用input()实现用户输入账号、密码的功能 isb =input("快点写密码") #请用input()实现用户输入账号、密码的功能
i-=1
if sb==username and isb==userpass: if sb==username and isb==userpass:
print("对") print("对")
break break
if sb!=username: if sb!=username:
print("错") print("错")
ConnectionErrorco continue
if isb!=userpass: if isb!=userpass:
print("错") 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