import matplotlib.pyplot as plt
labels=['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
sizes = [13.08,12.1,9.13,5.27,60.42]
fig, ax = plt.subplots()
ax.pie(sizes, labels=labels, autopct='%1.1f%%', startangle=90)
circle = plt.Circle((0, 0), 0.7, fc='white')
fig.gca().add_artist(circle)
plt.legend(labels, loc='best')
plt.rcParams['font.sans-serif']=['SimHei']
plt.axis('equal')
plt.show()
06-22
3156
04-14
6335