直接在字符串里加单美元符号就可以了 plt.title('$y=\sin (x^2)$') x = np.linspace(-2, 2, 100) plt.plot(x, np.sin(x ** 2)) plt.show().
確定! 回上一頁