With the establishment of a competitive electricity retail market, how to optimize the retail electricity price mechanism has become the core of all kinds of retail companies to explore. Aiming at the pricing problem of time-of-use electricity price, this paper proposes a pricing strategy based on the master-slave game model. Firstly, considering the user's electricity utility and satisfaction factors, the comprehensive benefit function of the electricity selling company with electricity price as the decision variable and the user's comprehensive benefit function with electricity consumption as the decision variable are established, respectively. Then, a master-slave game model is established with the electricity selling company as the leader and the user as the follower, and the reverse induction method is used to solve the model. Finally, considering the influencing factors of user response ability, different electricity price types and user types are set up for simulation. The results show that the revenue of electricity retailers can be increased by up to 170,000 yuan, and the average electricity price of users can be reduced by up to 8 yuan. It is verified that the model can effectively achieve a win-win situation for both sides and promote peak shaving and valley filling. At the same time, it is proved that the role of the model is positively related to electricity price flexibility and user response capability.