A photographing method, applied to an electronic device, wherein an illumination device provides light in a photographing scene of the electronic device, the illumination device provides flickering light, and a duration for which the illumination device flickers once is a flickering duration; and the method comprises: running, by the electronic device, a camera application, and determining, by the electronic device, that the light in the photographing scene is flickering light; on this basis, acquiring, by the electronic device, an image in a first exposure manner, wherein the first exposure manner indicates that the electronic device performs exposures with a first exposure duration and a second exposure duration alternately and generates a first photographing queue and a second photographing queue, the first photographing queue comprises at least one first image, the second photographing queue comprises at least one second image, the first photographing queue is an image acquired by the electronic device with the first exposure duration, the second photographing queue is an image acquired by the electronic device with the second exposure duration, the first exposure duration is greater than the flickering duration, and the second exposure duration is less than the flickering duration; displaying, by the electronic device, a photographing interface, wherein the photographing interface comprises a preview image and a capture button, and the preview image is generated based on the first photographing queue; and in response to a trigger to the capture button, generating, by the electronic device, a captured image based on the at least one first image and the at least one second image, and displaying the captured image; wherein the method further comprises: when the electronic device acquires the image in the first exposure manner, acquiring, by the electronic device, the image at a first frequency, wherein the first exposure duration is an integer multiple of the flickering duration; and the acquiring, by the electronic device, the image at a first frequency comprises: acquiring, by the electronic device, the image in the first photographing queue at a second frequency, and acquiring, by the electronic device, the image in the second photographing queue at a third frequency, wherein a sum of the second frequency and the third frequency is equal to the first frequency. running, by the electronic device, a camera application, and determining, by the electronic device, that the light in the photographing scene is flickering light; on this basis, acquiring, by the electronic device, an image in a first exposure manner, wherein the first exposure manner indicates that the electronic device performs exposures with a first exposure duration and a second exposure duration alternately and generates a first photographing queue and a second photographing queue, the first photographing queue comprises at least one first image, the second photographing queue comprises at least one second image, the first photographing queue is an image acquired by the electronic device with the first exposure duration, the second photographing queue is an image acquired by the electronic device with the second exposure duration, the first exposure duration is greater than the flickering duration, and the second exposure duration is less than the flickering duration; displaying, by the electronic device, a photographing interface, wherein the photographing interface comprises a preview image and a capture button, and the preview image is generated based on the first photographing queue; and in response to a trigger to the capture button, generating, by the electronic device, a captured image based on the at least one first image and the at least one second image, and displaying the captured image; wherein the method further comprises: when the electronic device acquires the image in the first exposure manner, acquiring, by the electronic device, the image at a first frequency, wherein the first exposure duration is an integer multiple of the flickering duration; and the acquiring, by the electronic device, the image at a first frequency comprises: acquiring, by the electronic device, the image in the first photographing queue at a second frequency, and acquiring, by the electronic device, the image in the second photographing queue at a third frequency, wherein a sum of the second frequency and the third frequency is equal to the first frequency.