結果 : convert boolean matrix to int python