Finally, you can compute the number of heads by summing the array of booleans heads , because in numerical context, Python treats True as one ...
確定! 回上一頁