标签:control hello array bsp str play audio decode bytearray
>>> str="hello world"
>>> x=bytearray(str)
>>> x
bytearray(b‘hello world‘)
>>> x.decode()
u‘hello world‘
>>>bytearray()
bytearray(b‘‘)
>>> bytearray([1,2,3])
bytearray(b‘\x01\x02\x03‘)
>>> bytearray(‘runoob‘, ‘utf-8‘)
bytearray(b‘runoob‘)
>>>
标签:control hello array bsp str play audio decode bytearray
原文地址:https://www.cnblogs.com/sea-stream/p/11216566.html