matplotlib 作用:生成出版质量级别的图形 中文文档:https://www.matplotlib.org.cn/ 官方文档:https://matplotlib.org/users/index.html 生成饼状图 import matplotlib.pyplot as plt # data to plot labels = ('Python', 'C++', 'Ruby', 'Java',) sizes = (215, 130, 245, 210,) colors = ('gold', 'yellowgreen', 'lightcoral', 'lightskyblue',) p