Commit 4bce3fb2 by BellCodeEditor

auto save

parent 5ec53ebb
Showing with 16 additions and 0 deletions
userName = "小明"
userPass = "666666"
i = 0
while i < 5:
i += 1 # i = i + 1
name = input("请输入用户名:")
pawd = input("请输入密码:")
if name==userName and pawd == userPass:
print("登录成功!")
break
elif name!=userName:
print("用户名错误!")
else:
print("密码错误!")
\ 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