Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的代码:
import Image img = Image.new("RBG",(649,489),(0,0,255)) for x in xrange(649): for y in xrange(489): img.putpixel((x,y),(0,255,0)) img.show()
当我尝试运行此代码时,我得到一个“ValueError:无法识别的模式”,有谁知道为什么会发生这种情况?任何帮助将不胜感激。:)
我想它应该是"RGB"而不是"RBG".
"RGB"
"RBG"