Commit d0b5fe75 by BellCodeEditor

save project

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