import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif']=['simHei']
labels=['教师','辅导员','实训室管理员','行政人员']
sizes=[79,26,10,8]
colors=['yellowgreen','gold','lightskyblue','red']
explode=(0,0.5,0,0.8)
plt.pie(sizes,explode=explode,labels=labels,colors=colors,autopct='%1.1f%%',shadow=True,startangle=180)
plt.axis('equal')
plt.saevfig('../R&Q_Pic/test8',dpi=600)
plt.show