The invention discloses a method for eliminating friction noise of an electronic stethoscope. The method comprises the following step: S1 dividing an acquired mixed signal into n0 window signals for the first time, finding out the amplitude of each window signal, taking the absolute value, enabling the maximum value to be A_max, and recording the position i, j, wherein i is the mark number of thewindow, i=0, 1, 2..., j is the position corresponding to waveform data of the window, and j=0, 1, 2.... According to the method, the friction noise generated between an auscultation head and the garment is eliminated based on the period average energy proportion algorithm, the friction noise generated between the auscultation head and a garment can be eliminated, and thus heart sound signals without friction noise are obtained; and while the friction noise signals are eliminated, the integrity of the heart sound signals is guaranteed.