答案 0 :(得分:0)
from PIL import Image, ImageFont, ImageDraw
im = Image.new('RGB', (300,300), (255,255,255))
dr = ImageDraw.Draw(im)
# dr.rectangle(((0+(j)*100,0+(j)*100),(100+(j)*100, 100+(j)*100)), fill="blue", outline = "black")
for i in range(0,3):
for j in range(0,3):
print([(0+i*100,0+j*100),(100+i*100,100+j*100)])
dr.rectangle([(0+j*100,0+i*100),(100+j*100,100+i*100)], fill="blue", outline = "black")
im.show()