= u"文字转图片"
#设置字体和字号
font = pygame.font.SysFont('microsoft yahei', 200)
#渲染图片,设置背景颜色和字体样式,前面的颜色是字体颜色
ftext...= font.render(text, True, (65, 83, 130),(255, 255, 255))
#保存图片
pygame.image.save(ftext, "image.jpg")...img1=Image.open("hz.jpg") #打开文件1
img2=Image.open("a.jpg") #打开文件2
img1.paste(img2, (535, 295)) # 添加到海报上...def zc():
site = "http://www.zhongzemin.cn"
QR_name = 'code.png' # 二维码名称
# 实例化QRCode生成qr对象...def create_code(self):
# 实例化QRCode生成qr对象
qr = qrcode.QRCode(
version=1,