import matplotlib.pyplot as plt # 导入Matplotlib库 plt.figure(figsize=(16, 5)) plt.subplot(1, 2, 1) plt.plot(r_history) plt.subplot(1, 2, 2) plt.plot(j_history)