题目网站 https://github.com/Yixiaohan/show-me-the-code
0000题答案
from PIL import Image,ImageFont,ImageDraw im=Image.open('bg.png') (width,height)=im.size draw=ImageDraw.Draw(im) newfont=ImageFont.truetype('simkai.ttf',50) draw.text((width-40,20),'4',(255,0,0),font=newfont) #Question
#有没有更好的方法在右上角显示
#PIL 文档见:http://pillow-cn.readthedocs.io/zh_CN/latest/index.html 后续有需要请查找
#有关pillow的一些小例子便于学习:http://blog.csdn.net/Richie_ll/article/details/69206210