A verification code input method, comprising: Receiving, by an electronic device, a verification SMS message, wherein the verification SMS message comprises a verification code; Detecting, by the electronic device, a single operation performed on a touchscreen, wherein the single operation is used to instruct the electronic device to input the verification code into a preset location of a to-be-verified application, and the to-be-verified application performs authentication on a user identity by using the verification code; and Inputting, by the electronic device, the verification code into the preset location in response to the single operation; wherein after the receiving, by an electronic device, a verification SMS message, the method further comprises: when the to-be-verified application runs in the foreground, displaying, by the electronic device, the verification SMS message and the to-be-verified application at the same time on a display interface by using different windows; and the inputting, by the electronic device, the verification code into the preset location in response to the single operation comprises: obtaining, by the electronic device, an end location of the single operation on the display interface; and when the end location is on the window on which the to-be-verified application is displayed, inputting, by the electronic device, the verification code into the preset location; wherein after the obtaining, by the electronic device, an end location of the single operation on the display interface, the method further comprises: when the end location is not on the window on which the to-be-verified application is displayed, presenting, by the electronic device, a first prompt on the display interface, wherein the first prompt is used to instruct a user to perform a correct single operation on the verification code. Receiving, by an electronic device, a verification SMS message, wherein the verification SMS message comprises a verification code; Detecting, by the electronic device, a single operation performed on a touchscreen, wherein the single operation is used to instruct the electronic device to input the verification code into a preset location of a to-be-verified application, and the to-be-verified application performs authentication on a user identity by using the verification code; and Inputting, by the electronic device, the verification code into the preset location in response to the single operation; wherein after the receiving, by an electronic device, a verification SMS message, the method further comprises: when the to-be-verified application runs in the foreground, displaying, by the electronic device, the verification SMS message and the to-be-verified application at the same time on a display interface by using different windows; and the inputting, by the electronic device, the verification code into the preset location in response to the single operation comprises: obtaining, by the electronic device, an end location of the single operation on the display interface; and when the end location is on the window on which the to-be-verified application is displayed, inputting, by the electronic device, the verification code into the preset location; wherein after the obtaining, by the electronic device, an end location of the single operation on the display interface, the method further comprises: when the end location is not on the window on which the to-be-verified application is displayed, presenting, by the electronic device, a first prompt on the display interface, wherein the first prompt is used to instruct a user to perform a correct single operation on the verification code. when the to-be-verified application runs in the foreground, displaying, by the electronic device, the verification SMS message and the to-be-verified application at the same time on a display interface by using different windows; and the inputting, by the electronic device, the verification code into the preset location in response to the single operation comprises: obtaining, by the electronic device, an end location of the single operation on the display interface; and when the end location is on the window on which the to-be-verified application is displayed, inputting, by the electronic device, the verification code into the preset location; wherein after the obtaining, by the electronic device, an end location of the single operation on the display interface, the method further comprises: when the end location is not on the window on which the to-be-verified application is displayed, presenting, by the electronic device, a first prompt on the display interface, wherein the first prompt is used to instruct a user to perform a correct single operation on the verification code. obtaining, by the electronic device, an end location of the single operation on the display interface; and when the end location is on the window on which the to-be-verified application is displayed, inputting, by the electronic device, the verification code into the preset location; wherein after the obtaining, by the electronic device, an end location of the single operation on the display interface, the method further comprises: when the end location is not on the window on which the to-be-verified application is displayed, presenting, by the electronic device, a first prompt on the display interface, wherein the first prompt is used to instruct a user to perform a correct single operation on the verification code.