【PythonAI】4.3.2 技能实训:使用无代码AI工具生成活动海报、插图
# tongyi_image_generator.py
import dashscope
import requests
import base64
from PIL import Image
from io import BytesIO
import osclass AIImageGenerator:def __init__(self, api_key):"""初始化图片生成器:param api_key: 阿里云DashScope API密钥&qu…
2026/7/17 6:51:49