Python画图之饼图 import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = 'SimHei' # 设置中文显示 plt.figure(figsize=(5, 5)) # 将画布设定为正方形,则绘制的饼图是正圆 label