Python之给图片添加水印

1.安装Pillowpython pip install Pillow字体 2.具体代码以下code from PIL import Image, ImageDraw, ImageFont # 指定要使用的字体和大小;黑体,24号 font = ImageFont.truetype('heiti.ttf', 24) # image: 图片 text:要添加的文本 font:字体 def a
相关文章
相关标签/搜索