結果 : convert list of boolean to int python