10 2020 档案
摘要:1 import os 2 from PIL import Image, ImageDraw, ImageFont 3 4 5 def add_text_to_image(image, text): 6 font = ImageFont.truetype('C:\Windows\Fonts\Adob
阅读全文
摘要:1 import base64 2 import io 3 import os 4 from PIL import Image 5 from PIL import ImageFile 6 7 8 # 压缩图片文件 9 def compress_image(outfile, mb=600, quali
阅读全文
摘要:一.检测Python以及git #检查Python的版本是否在2.7以上 python -v //2.7版本 如果没有安装Python的话,执行以下命令进行安装(如果检测到已安装则略过) #安装python所需的包 yum install zlib-devel yum install bzip2-d
阅读全文