Commit 1eb48538 by BellCodeEditor

save project

parent 5c9b87bd
Showing with 25 additions and 0 deletions
i=3
username = "python"
userpassword = "123456"
while True:
if i>0:
a= input("请输入用户名:")
b = input("请输入密码:")
i-=1
if a == username and b == userpassword:
print("登录成功!")
break
if a!=username:
print('账号错')
if b!=userpassword:
print('密码错')
else:
exit()
print('欢迎')
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