2019-04-10
阅读量:
1074
numpy 获取数组的末尾索引
为了获取数组的末尾索引,可以用负值索引
In[1]: x1[-1]
Out[1]: 9
In[2]: x1[-2]
Out[2]: 7






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论