I come across a problem. And I am not familier with the python command.
Assume there is a list containing 60 elements shown below, its size is [1,60].
A=[1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0]
Is it possible that can I convert the A list with size [1,60] into the list with size[20,3], like:
[[1,1,0],[0,1,1],[0,0,1],[0,0,0],[0,0,1].......[0,1,1],[0,1,0]]
Currently, I have no ideas how to achieve that. Could you please give me some advices? Thank you very much.