我想将 python 列表转换为 Vector(具有单列的矩阵)。例子:[1, 2, 3]应该变成[[1], [2], [3]].
[1, 2, 3]
[[1], [2], [3]]
python list vector matrix
如何将字符串列表转换为列表列表为
a=['A','B','C']
并转换为
b=[['A'],['B'],['C']]
python python-3.x
python ×2
list ×1
matrix ×1
python-3.x ×1
vector ×1