pikapython/examples/builtins/encode_decode.py
2023-06-30 00:25:42 +08:00

10 lines
187 B
Python

from PikaStdData import String as string
from PikaStdData import ByteArray as bytearray
b = bytearray(b'test')
b_s = b.decode()
print(b_s)
s = string('test')
s_b = s.encode()
print(s_b)