import matplotlib.pyplot as plta=2b=3plt.text(0.5,0.5,r'$\frac{a}{b}$',size=15)plt.show()#如何修改,得到2/3,而不是a/b