結果 : how to encode a list in python