擅长:python、mysql、java
<p>您不需要太多define<code>rb</code>模式,只需使用:</p>
<pre><code>Image.open(imgFileName)
</code></pre>
<p>唯一接受的模式是<code>Image.open()</code>模式(默认)。见<a href="https://github.com/python-pillow/Pillow/blob/master/PIL/Image.py#L2175" rel="nofollow">here</a></p>