python - better way to iterate two , multiple lists at once - Stack ...

python - better way to iterate two , multiple lists at once - Stack ...

瀏覽:979
日期:2025-05-01
The usual way is to use zip() : for x, y in zip(a, b): # x is from a, y is from b. This will stop when the shorter of the two iterables a and b is exhausted....看更多