結果 : how to check matrix size in python