摘要: 1 import urllib.request 2 import re 3 4 def get_html(url): 5 page = urllib.request.urlopen(url) 6 html = page.read() 7 return html 8 9 def get_img(html): 10 r... 阅读全文
posted @ 2017-04-20 11:35 幽灵飞舞 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image, ImageDraw, ImageFont 2 3 def add_num(img): 4 draw = ImageDraw.Draw(img) 5 myfont = ImageFont.truetype('C:/windows/fonts/Arial.ttf', size=40) 6 fillcolor = ... 阅读全文
posted @ 2017-04-20 11:20 幽灵飞舞 阅读(3091) 评论(0) 推荐(0) 编辑