批量在图片指定位置添加文字python # 导入PIL模块 from PIL import Image, ImageDraw, ImageFont, ImageFilter zt = r"C:/Windows/Fonts/simhei.ttf" # 指定字体 def tianzi(pic, site, txt, path): # 打开初始文件 image = Image.open(pic) # print('原图长宽:', image.size) font = ImageFont.truetype(zt, 50) # 创建Draw对象: d