name = 0while name < 3: user = input("请输入用户名:") psd = input("请输入密码:") if user == "wss" and psd == "123": print("登陆成功") break else: print("请重新输入") name += 1