A mathematical relationship between the degree-rank function and the degree distribution of complex networks is derived firstly.Based on the relationship,a method of constructing complex networks with arbitrary degree distributions is proposed.Taking scale-free network and exponential network as examples,the efficiency of the method is verified.