np.array(list(zip))
时间: 2023-10-08 08:14:41 浏览: 145
senarai.zip_zip
np.array(list(zip))是一个将多个列表或数组按列合并成一个多维数组的函数。在给定的引用中,np.array(list(zip(*\[iter(xrange(300))\]*3),\[('x', int), ('y', float), ('z', int)\]).view(np.recarray)是将一个迭代器xrange(300)按照每3个元素一组进行合并,并将合并后的结果转换为一个多维数组,其中每一列的数据类型分别为('x', int), ('y', float), ('z', int)。\[1\]
#### 引用[.reference_title]
- *1* [python – 如何将numpy.recarray转换为numpy.array?](https://blog.csdn.net/weixin_39991055/article/details/110681943)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [numpy:数组过滤 lambda & np.where & np.argwhere](https://blog.csdn.net/qq_39506862/article/details/126967157)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文