Commit 43909064 by BellCodeEditor

save project

parent c624ea5e
Showing with 21 additions and 8 deletions
user = '1234' user = '1234'
pwd = '345' pwd = '345'
use = input("请输入账号") use = input("请输入账号")
pw = input("请输入密码") pw = input("请输入密码")
while True: while True:
if use == user and == pwd: if use == user and pw == pwd:
print("登录成功") print("登录成功")
break break
else: else:
if use != user: if use == user:
print("sb,错误,重新来") print("sb,sb,sb")
if use != user: continue
print("sb,错误,重新来") if pw == pwd:
print("sb,sb,sb")
\ No newline at end of file user = '1234'
pwd = '345'
use = input("请输入账号")
pw = input("请输入密码")
while True:
if use == user and pw == pwd:
print("登录成功")
break
else:
if use == user:
print("sb,sb,sb")
continue
if pw == pwd:
print("sb,sb,sb")
\ 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