摘要: 运行的结果: 阅读全文
posted @ 2016-09-19 16:18 下丶雨天 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/pythonfrom PIL import Image ,ImageDraw, ImageFont#打开所在的文件im=Image.open('test.jpg')#获取图片对象的宽和高w,h=im.size#创建对象,把字体设置为高的1/4,如果数字多为个位应该加小点font 阅读全文
posted @ 2016-09-19 10:54 下丶雨天 阅读(491) 评论(0) 推荐(0) 编辑