使用pillow或者pil库编写 #coding:utf-8 #use pillow or pil try: from PIL import Image, ImageDraw, ImageFont, ImageEnhance,ImageFilter except ImportError: import Image, ImageDraw, ImageFont, ImageEnhance,ImageFilter import string,random fontPath = "C:/windows/…