Use the str.encode() method to encode the string to a bytes object. · Set the errors keyword argument to ignore to drop any non utf-8 characters.
確定! 回上一頁