In this article , complete basis vectors is produced with the method of arranging order of permutation group ,the Hamiltonian operator of the XY model function the complete basis vectors to construct energy matrix , then the characters of dimension of the energy matrix are listed .