用table,不要用for,举个例子,我想解 x^2 + k*x + 1 == 0, k=1,2,3,.....,10这10个方程的解,那么就这么写Table[x /. Solve[x^2 + k*x + 1 == 0, x], {k, 1, 10}]