結果 : turn true false to 1 0 python