to do 是表示前面一句话的目的
doing是表示前面一句话的原因 后面接一个从句
就像
i moved out,hoping that he will miss me
i moved out, to live a better life