利用python中的html文件制作动画

2024-09-30 04:29:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个html文件的列表,我正试图将它们组合成python中的动画。我试过这样做:

htims = [list_of_html_images]
%matplotlib notebook
import matplotlib.pyplot as plt
import matplotlib.animation as animation
ani = animation.ArtistAnimation(fig, htims, repeat_delay=1000)

但是当我试图保存它时,我得到了一个错误:

ValueError: the output must be of type htm or html

plt.show()命令什么也没给我。你知道吗

pythonHTML图像中有没有一个好的方法来制作动画?你知道吗


Tags: 文件ofimport列表matplotlibhtmlas动画

热门问题