一、程序预览 二、程序代码 import matplotlib.pyplot as plt import numpy as np from matplotlib import rcParams # 设置中文字体 rcParams[