Use len() to find the length of a 2D list in Python · an_array = [[1, 2], [3, 4]] · rows = len(an_array) · columns = len(an_array[0]) · total_length = rows * ...
確定! 回上一頁