RuntimeWarning: More than 20 figures have been opened.

RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (matplotlib.pyplot.figure) are retained until explicitly closed and may consume too much memory.
已邀请:

李魔佛 - 左手的厨子

赞同来自:

因为循环太多,每个循环里面画了一张图,所以可以在每个循环内把plt关闭。
plt.close()

要回复问题请先登录注册