Aiming at the energy sharing system of electricity and heat coupling,a peer-to-peer energy sharing framework for electric and thermal joint scheduling is designed. In this framework, the energy sharing strategy of the community is adopted for the user's current energy management. Among them, the user's energy sources are diversified. Any equivalent user shares electrical energy. The users' thermal energy demand can only be met by combined heat and power plants. The thesis uses the Alternating Direction Method of Multipliers to solve the energy sharing strategy, and obtains the optimal solution based on the users' basic cost.The thesis compares and analyzes the strategy of this thesis with strategies without peer-to-peer sharing and without combined heat and power devices. The results show that the strategy has good economy and reduces the impact on the main power grid.