此问题已在此处有答案:
Python reshape list to ndim array(4个答案)
9天前关闭
我有两个清单:
Predict =
[50.47426986694336, 50.587158203125, 50.58975601196289, 50.911197662353516]
Target =
[[51.339996337890625, 51.79999923706055, 51.09000015258789, 64.86000061035156]]
我怎样才能重塑其中一个是相同的形状,以其他,以便我可以绘制两个名单,请?
2条答案
按热度按时间r8xiu3jd1#
假设 Target 中的双冒号是一个错字,你可以这样做:
这导致:
bgtovc5b2#
下面是我的代码测试我这边这个问题。