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
相關文章
相關標籤/搜索