injetlee/Python

Python爬虫入门(二)公众号版本的代码有错误

sgggr opened this issue · 0 comments

sgggr commented

with open('pic/{}/{}'.format(text, link.split('/')[-1]), 'wb') as f:

应该是

with open('pic/{}/{}'.format(text, pic_link.split('/')[-1]), 'wb') as f: