Python has predefined encode() method to encode the string. It comes with a number of built in codecs, like - ascii, big5, latin_1, utf_7, utf_8 etc.
確定! 回上一頁