A control method of controlling an electronic device, the control method comprising: sequencing the number of times of different gains used by a fingerprint sensor of the electronic device, wherein each of the different gains used by the fingerprint sensor successfully unlocks the electronic device; and controlling the fingerprint sensor to directly use the most frequently used gain according to the sequencing step to obtain a fingerprint image to conduct fingerprint unlocking, characterized in that the sequencing step comprises: enabling a machine learning mode; controlling, under the machine learning mode, the fingerprint sensor to obtain a plurality of fingerprint images corresponding to the different gains, wherein each of the different gains corresponds to one fingerprint image, the fingerprint sensor being controlled to obtain fingerprint images corresponding to all the gains each time of fingerprint unlocking; processing the plurality of fingerprint images to obtain a fingerprint image with the highest signal-to-noise ratio and a corresponding gain; and increasing the number of times of the corresponding gain used by the fingerprint sensor by one; further characterized in that the process of fingerprint unlocking comprises: when the fingerprint unlocking conducted by the fingerprint sensor through the fingerprint image corresponding to the gain with the maximum number of times fails, controlling the fingerprint sensor to obtain fingerprint images in a one-to-one correspondence with the gains, according to the sequence and in descending order of the number of times of the gains; and controlling the fingerprint sensor to conduct the fingerprint unlocking by sequentially using one of the fingerprint images that are in the one-to-one correspondence with the gains. sequencing the number of times of different gains used by a fingerprint sensor of the electronic device, wherein each of the different gains used by the fingerprint sensor successfully unlocks the electronic device; and controlling the fingerprint sensor to directly use the most frequently used gain according to the sequencing step to obtain a fingerprint image to conduct fingerprint unlocking, characterized in that the sequencing step comprises: enabling a machine learning mode; controlling, under the machine learning mode, the fingerprint sensor to obtain a plurality of fingerprint images corresponding to the different gains, wherein each of the different gains corresponds to one fingerprint image, the fingerprint sensor being controlled to obtain fingerprint images corresponding to all the gains each time of fingerprint unlocking; processing the plurality of fingerprint images to obtain a fingerprint image with the highest signal-to-noise ratio and a corresponding gain; and increasing the number of times of the corresponding gain used by the fingerprint sensor by one; enabling a machine learning mode; controlling, under the machine learning mode, the fingerprint sensor to obtain a plurality of fingerprint images corresponding to the different gains, wherein each of the different gains corresponds to one fingerprint image, the fingerprint sensor being controlled to obtain fingerprint images corresponding to all the gains each time of fingerprint unlocking; processing the plurality of fingerprint images to obtain a fingerprint image with the highest signal-to-noise ratio and a corresponding gain; and increasing the number of times of the corresponding gain used by the fingerprint sensor by one; further characterized in that the process of fingerprint unlocking comprises: when the fingerprint unlocking conducted by the fingerprint sensor through the fingerprint image corresponding to the gain with the maximum number of times fails, controlling the fingerprint sensor to obtain fingerprint images in a one-to-one correspondence with the gains, according to the sequence and in descending order of the number of times of the gains; and controlling the fingerprint sensor to conduct the fingerprint unlocking by sequentially using one of the fingerprint images that are in the one-to-one correspondence with the gains. when the fingerprint unlocking conducted by the fingerprint sensor through the fingerprint image corresponding to the gain with the maximum number of times fails, controlling the fingerprint sensor to obtain fingerprint images in a one-to-one correspondence with the gains, according to the sequence and in descending order of the number of times of the gains; and controlling the fingerprint sensor to conduct the fingerprint unlocking by sequentially using one of the fingerprint images that are in the one-to-one correspondence with the gains.