#用户登录 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