我有一个包含两个名为temp的列表列表的元组:
! mkdir ...
! python file.py
我想在这个名为temp的数据中找到每个可能的列表结构,并从这些列表中创建一个numpy矩阵,例如:
矩阵的第一行= [1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
第二行矩阵= [0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
第十行矩阵= [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,10.0]