Lista de Python para bytes
# Use 'bytes' constructor
a_list = [1, 2, 3]
list_as_bytes = bytes(a_list)
Panicky Pigeon
# Use 'bytes' constructor
a_list = [1, 2, 3]
list_as_bytes = bytes(a_list)