Programming/Python

Python for loop시 두개이상의 배열을 한묶음으로 처리하기

Mr. Curious 2017. 10. 23. 15:15



for x, y in zip(a, b):
    # x is from a, y is from b


https://stackoverflow.com/questions/10080379/better-way-to-iterate-over-two-or-multiple-lists-at-once

저작자표시 비영리 변경금지 (새창열림)