World MISC improve offensive and defensive zones glance-50 solution to a problem

First up gave a gif, a thin line. Thinking: will be divided into single images and then stitching.
As used herein python3 exploit code PIL library written.

import os 
from PIL import Image

im = Image.new('RGB', (2*201,600))#new(mode,size) size is long and width
PATH = '你的路径'

FILE_NAME = [i for i in os.listdir(PATH)]//这才是python的正确写法,kukuku

width = 0
for i in FILE_NAME:
    im.paste(Image.open(PATH+i),(width,0,width+2,600))#box is 左,上,右,下
    width += 2
im.show()    

Here Insert Picture Description

 im.paste(Image.open(PATH+i),(width,0,width+2,600))
 如果不加0600的话就成了这样。。。

Here Insert Picture Description
Here we used several PIL library, and back then I was specifically written an article about the PIL.
click the link

Published 36 original articles · won praise 29 · views 3970

Guess you like

Origin blog.csdn.net/YUK_103/article/details/100821302