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

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

瀏覽:302
日期:2025-06-13
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....看更多