猿问
python怎么将numpy类转为string类?
python怎么将numpy类转为string类?
慕码人2483693
浏览 603
回答 2
2回答
饮歌长啸
# -*- coding:utf-8 -*-import numpy as npmystr = "100110"print np.array(list(mystr)print np.array(list(mystr)).tostring()
0
0
0
慕标琳琳
示例代码:# -*- coding:utf-8 -*-import numpy as npmystr = "100110"print np.array(list(mystr))print np.array(list(mystr)).tostring()
0
0
0
随时随地看视频
慕课网APP
相关分类
Python
我要回答