我有一个数组“电压”,见图片。
我想找出电压的最大值。你知道吗
vmax = max(voltage[:,1].tolist())
但是,在Spyder控制台中调试时出现错误:
-> vmax = max(voltage[:,1].tolist()) (Pdb) next
IndexError: 'too many indices'
所以问题是:
vmax
的值?我还没有在变量管理器中看到它。我刚刚在控制台中输入了命令print(vmax)
。你知道吗编辑:
电压是下图所示的阵列。你知道吗
谢谢mdurant和WarrenWeckesser。他们已经在评论中回答了。你知道吗
相关问题 更多 >
编程相关推荐