Step8:Refactor(While To For)
Signed-off-by: jinyu.yin <jinyu.yin@dianping.com>