学习笔记(08):NumPy数据分析-NumPy创建数组的方法-fromstring

立即学习:https://edu.csdn.net/course/play/25878/316057?utm_source=blogtoedu

fromstring:

          s1='1 2 3'

          np.fromstring(s1, dtype=int,sep=' ')

           s2='1,2,3'             np.fromstring(s2,dtype=float,sep=',')

发布了24 篇原创文章 · 获赞 8 · 访问量 1173

猜你喜欢

转载自blog.csdn.net/qq_41739233/article/details/104240473