plt.pie(sizes,explode=explode,labels=labels,colors=colors,autopct='%1.1f%%',shadow=True,startangle=50) plt.axis('equal') plt.show() matplotlib图标正常显示中文 为了在图表中能够显示中文和负号等,需要下面一段设置: import matplotlib mpl mpl.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中...