Turn string of a multi dimensional array into a numpy array

前端 未结 0 1254
醉酒成梦
醉酒成梦 2020-11-21 18:35

I would like to convert such a string "[[[1 2 3]\\n [2 3 4]]]" into a numpy array [[[1,2,3],[2,3,4]]]. How may I go about doing this in Python?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题