4 ms·
Even better, replacing for i in range(len(imgid)): and similar lines with: for i, img in enumerate(imgid): would allow one to get rid of all these
by lou1306 9y ago
Even better, replacing
for i in range(len(imgid)):
and similar lines with:
for i, img in enumerate(imgid):
would allow one to get rid of all these list accessors.