打开电脑
启动Mathematica
输入ParametricPlot3D[{Cos[t] (3 + Cos[u]), Sin[t] (3 + Cos[u]), Sin[u]}, {t, 0, 2 Pi}, {u, 0, 2 Pi}, Mesh -> None, ColorFunction -> "Rainbow", Boxed -> False, Axes -> None, AspectRatio -> 1]
按下Shift+Enter
色彩是ColorFunction,可以随便改动。