登录

#用户登录

count = 0

while True:
    log_name = input("PLS input the log name: ")
    if log_name == "Simon":
        print("恭喜,登录成功!")
        break
    else:
        print("登录失败。")

    count = count + 1
    if count == 3:
        print("超出登录次数。")
        break

  

posted @ 2018-09-04 23:21  xuwenwei  阅读(92)  评论(0编辑  收藏  举报