摘要:
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... 阅读全文
摘要:
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 = ... 阅读全文