numpy - 无法获取 numpy 数组的实际值
问题描述
我有一个numpy数组如下 -
test= [['test1' 'human,cow' 'human,cow' 'human,cow']
['test2' 'wheat,mouse' 'wheat,mouse' 'wheat,mouse']
['test3' 'wallaby,mouse' 'wallaby,mouse' 'wallaby,mouse']]
例如,当我尝试获取数组值时 test[0,1]
,我得到array(['human,cow'], dtype='<U13')
. 我如何获得实际价值human,cow
而不是array[], dtype=
?
解决方案
推荐阅读
- powershell - 如何在 rename-item 命令中使用通配符 (*)
- javascript - validatorjs (TypeError: Validator is not a constructor)
- memory-management - 识别 Julia 中的异常内存分配
- scala - Scala:方法参数类型不匹配
- javascript - 在递归调用中渲染到 HTML 画布
- python - 如何从 cpp 获取 python 函数的打印
- android - roomdb RawQuery 与关系返回 livedata
- python - 在 python 3 中导入模块时模块停止工作
- c# - 应用程序之间的 C# 数据库
- excel - 如何在 VBA 中使用另一个宏/函数(UDF)调用对象/宏/用户窗体?