Briefly introduced the spectroscopy theory of diatomic molecule, considering about the characters of diatomic molecular spectrum data, we used least-squares method to resolve the problem of the experiment data fitting, and made comparison with the results produced by LDTT and GAUSS method.