#在给定动物图片的左上角写出动物名称并显示图像
from PIL import Image, ImageFont, ImageDraw
img = Image.open('animal.jpg')
font = ImageFont.truetype('c:/windows/Fonts/simsun.ttc', 30)
draw = ImageDraw.Draw(img)
prtStr = '国宝大熊猫'
draw.text((5, 5), prtStr, 'red', font=font)
img.show()
