An electronic cigarette playing different melodies according to different amounts of smoking air flow, and an electronic cigarette operating method; the electronic cigarette comprises an electronic cigarette body (100); the electronic cigarette body (100) is provided with an air flow sensor (102), an atomization assembly (103), a sound module (104), and a microcontroller (101) for receiving and identifying different pulse signals and transmitting control signals according to different pulse signals; when a user smokes, the air flow sensor (102) generates pulse signals according to the air flow rate in the electronic cigarette body (100), and the microcontroller (101) identifies the pulse signals and transmits the corresponding control signals to the sound module (104), such that the sound module (104) generates different sounds according to different air flow rates, and the atomization assembly (103) simultaneously atomizes the cigarette liquid to produce smoke. When smoking, the user hears different melodies according to different smoking air flows, thus cultivating the taste of the user, and making the user feel content. The method of adjusting melodies based on the smoking air flow skillfully guides a smoker to utilize the electronic cigarette, being helpful to the physical and mental health of the smoker, and facilitating quitting smoking.