結果 : python convert boolean array to integer