python - 基础算法题5 - 用户登录(三次机会)

username = input("输入名字")
userword = int(input("输入密码"))
i=1
while i<=3:
    if username = '你好' and userword = 123:
        print("登录成功")
    else:
        print("登录失败")
  i++

 

posted @ 2019-07-11 16:35  bigbigbrid  阅读(406)  评论(0)    收藏  举报