1. 2.饼图 (1) import matplotlib.pyplot as plt labels='frogs','hogs','dogs','logs'% sizes=[15,30,45,10] explode=(0,0.1,0,0) %突出30那块 plt.pie(sizes,explode,labels=labels,autopct='%1.1f%%', shadow=False,startangle=90)%尺寸,突出部分,标签,显示数字格式,二维,起始角度 plt.show() (…