Try, and FAIL, to create a variable-sized 2d list rows = 3 cols = 2 a = [ [0] * cols ] * rows # Error: creates ... 2d lists do not really exist in Python.
確定! 回上一頁