The invention discloses a collaborative filtering algorithm based on user and project mixing, and the algorithm comprises the steps: 1, carrying out the arrangement of a user-project scoring data set, and building a user-project scoring matrix U; 2, calculating the similarities of articles, and ordering the similarities from the big to the small; 3, generating a 'nearest neighbor N' of articles according to the similarity ordering of the articles; 4, calculating the similarities between a target user T and other users, and ordering the similarities from the big to the small; 5, generating a 'nearest neighbor N' of users according to the similarity ordering of the users. The algorithm gives consideration to the similarities of the users and the similarities of the projects, obtains a project prediction score (giving consideration to the similarities of the users and the similarities of the projects at the same time) through employing a weighting method, carries out recommendation according to the ordering of scores, can reduce the value of an MAE (mean average error), and improves the accuracy of a recommended algorithm.