count = 0 while count < 3: user = input('请输入用户名>>>') pwd = input('请输入密码>>>') if user == 'huang' and pwd == '123': print('欢迎进入黑客帝国')1 print('...................') break else: print('用户名或密码错误') count = count + 1