結果 : convert boolean array to int python