y = img_index // num_images
I saw a code like this, and if it was C, it would be annotated, but I don't know what //
is doing on Python.
In python3
in python2
>>> 3/5
0
>>> 3//5
0
>>>
>>> 3/5
0.6
>>> 3//5
0
>>>
© 2024 OneMinuteCode. All rights reserved.