結果 : convert a list of boolean to int python