立即学习: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=',')
立即学习: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=',')