擅长:python、mysql、java
<p>使用Python和<a href="http://www.pythonware.com/products/pil/" rel="noreferrer">PIL</a>:</p>
<pre><code>from PIL import Image
gif = Image.open('path.gif')
try:
gif.seek(1)
except EOFError:
isanimated = False
else:
isanimated = True
</code></pre>