numpy使用陷阱

lst=[[1,2,3,'0'],
    [2,3,4,'1']]
arr=np.array(lst)

lst里面的元素最后全部会变为str类型

posted @ 2022-11-13 22:36  dlhl  阅读(19)  评论(0)    收藏  举报