A method for updating a sequence of fingerprint templates for matching, comprising: acquiring (S101, S201, S301) a fingerprint image; comparing (S102, S202, S302) the fingerprint image with a preset fingerprint template selected from N preset fingerprint templates pre-stored in a device, sequentially in a predetermined sequence of the N preset fingerprint templates for matching, any one of the N preset fingerprint templates having a matching score, and N being a positive integer greater than 1; performing an unlocking operation when the fingerprint image matches any preset fingerprint template of the N preset fingerprint templates; adjusting (S103, S303) the matching score of an ith preset fingerprint template, when the fingerprint image matches the ith preset fingerprint template, the ith preset fingerprint template being one of the N preset fingerprint templates; and sequencing (S104, S206, S304) the N preset fingerprint templates in a descending order of the matching scores to obtain a updated sequence of the N preset fingerprint templates, wherein the adjusting the matching score corresponding to the ith preset fingerprint template includes: determining a matching degree between the fingerprint image and the ith preset fingerprint template; acquiring a current matching score of the ith preset fingerprint template; characterized by calculating a difference between the matching degree and a fingerprint matching threshold; determining a target adjustment score based on a nonlinear function of the difference, wherein the nonlinear function is configured to obtain a higher target adjustment score for a greater difference and a lower target adjustment score for a smaller difference; and adding the target adjustment score to the current matching score to get a new matching score corresponding to the ith preset fingerprint template. acquiring (S101, S201, S301) a fingerprint image; comparing (S102, S202, S302) the fingerprint image with a preset fingerprint template selected from N preset fingerprint templates pre-stored in a device, sequentially in a predetermined sequence of the N preset fingerprint templates for matching, any one of the N preset fingerprint templates having a matching score, and N being a positive integer greater than 1; performing an unlocking operation when the fingerprint image matches any preset fingerprint template of the N preset fingerprint templates; adjusting (S103, S303) the matching score of an ith preset fingerprint template, when the fingerprint image matches the ith preset fingerprint template, the ith preset fingerprint template being one of the N preset fingerprint templates; and sequencing (S104, S206, S304) the N preset fingerprint templates in a descending order of the matching scores to obtain a updated sequence of the N preset fingerprint templates, wherein the adjusting the matching score corresponding to the ith preset fingerprint template includes: determining a matching degree between the fingerprint image and the ith preset fingerprint template; acquiring a current matching score of the ith preset fingerprint template; characterized by calculating a difference between the matching degree and a fingerprint matching threshold; determining a target adjustment score based on a nonlinear function of the difference, wherein the nonlinear function is configured to obtain a higher target adjustment score for a greater difference and a lower target adjustment score for a smaller difference; and adding the target adjustment score to the current matching score to get a new matching score corresponding to the ith preset fingerprint template. determining a matching degree between the fingerprint image and the ith preset fingerprint template; acquiring a current matching score of the ith preset fingerprint template; characterized by calculating a difference between the matching degree and a fingerprint matching threshold; determining a target adjustment score based on a nonlinear function of the difference, wherein the nonlinear function is configured to obtain a higher target adjustment score for a greater difference and a lower target adjustment score for a smaller difference; and adding the target adjustment score to the current matching score to get a new matching score corresponding to the ith preset fingerprint template.