求助
def find_imgs(url):html = url_open(url).decode('GBK')
img_addrs = []
a = r'http://d-pic-image.yesky.com/185x247/uploadImages/2018/(\d){3}/(\d){2}/(.)+_H.JPG'
pagelist2 = re.findall(a,html)
print(pagelist2)
find_imgs('http://pic.yesky.com/c/6_20491_1.shtml')
为啥我这个函数输出的是这么个玩意
[('3', '7', '8'), ('5', '0', 'X'), ('4', '3', 'J'), ('9', '6', 'W'), ('4', '8', 'A'), ('8', '8', 'X'), ('5', '9', '8'), ('8', '5', 'U'), ('7', '3', 'B'), ('5', '2', '0'), ('4', '0', '8'), ('0', '2', '8'), ('9', '1', '7'), ('5', '3', 'F'), ('7', '4', '8'), ('7', '8', 'S'), ('7', '6', '2'), ('7', '2', 'G'), ('7', '0', '6'), ('7', '8', 'U'), ('0', '0', '6'), ('8', '3', 'E'), ('7', '1', 'I'), ('7', '5', 'N'), ('6', '5', '4'), ('4', '9', '2'), ('1', '7', 'Q'), ('7', '4', '0'), ('3', '9', 'D')]
r字符串的意思是不转义,你想找的a是什么?
页:
[1]