重构__create_web_img_list函数
This commit is contained in:
parent
cfb8c9e078
commit
7bb5a5a88a
@ -13,11 +13,7 @@ class ImgManager:
|
||||
self.img_list = self.__create_web_img_list()
|
||||
|
||||
def __create_web_img_list(self):
|
||||
img_list = []
|
||||
for url in self.img_url_list:
|
||||
img = WebImg(self.task_name, url)
|
||||
img_list.append(img)
|
||||
return img_list
|
||||
return [WebImg(self.task_name, url) for url in self.img_url_list]
|
||||
|
||||
def batch_fetch_images(self):
|
||||
requester = Requester()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user