Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
connum = np.empty((160,160)) confidence = [2142,213124,23123,34324,4545,56634,343,45435,12312,4543,343]
我有列表confidence和 numpy 数组connum如何用列表的元素填充 empy numpy 数组confidence
confidence
connum
如果 confidence 是一个包含 25600 个元素的列表,只需执行以下操作:
connum = np.array(confidence).reshape((160,160))