我使用imageio從一組使用PIL創建的PNG生成GIF。這裏是我的代碼(發現here): import imageio
path = "./img/"
os.chdir(path)
filenames = sorted((fn for fn in os.listdir('.') if fn.endswith('.png')))
with imagei
我曾嘗試在線閱讀大量示例,發現imageio是完美的軟件包。 Also found examples written in here。 我剛遵循所示的例子中,並試圖以下 import imageio as io
import os
file_names = sorted((fn for fn in os.listdir('.') if fn.startswith('surface')))
#