def encode(self, strs):
        strs = map(lambda x: x.replace("\x00", "\\x00"), strs)
        ret = ""
        for s in strs:
            ret += s+"\x00"
        return ret
Encodes a list of strings to a single string.
dataset/ETHPy150Open algorhythms/LeetCode/271 Encode and Decode Strings.py/CodecError.encode