This paper proposes a multiperiod mean-variance portfolio selection model aiming at terminal wealth maximization without short sales,and its objective function is inseparable.The original model is turned to a dynamic programming problem with separable objective function by embedding it in an auxiliary model,which can be solved by the discrete approximate iteration method.Finally,an example using the real data from Shanghai Stock Exchange is given to illustrate the effectiveness of the model and algorithm.