import json import pyquery import requests lists = {} def A(link): r = requests.get(f"http://www.2cto.com/shouce/system/dlllibrary/riched32/default.htm/../{link}") r.encoding = "gbk" programUrl = pyquery.PyQuery(r.text) iii = 0 #print() miaoshu = "" for i in programUrl("font").items(): if i.attr.size == "2" and iii == 4: #and not "