zym=''{'人': array([[0. , 0.18934605, 0.81065395, 0. ],
[0. , 0.56853124, 0.43146876, 0. ]])}'';
zym=eval(zym)
zym=''{'人': array([[0. , 0.18934605, 0.81065395, 0. ],
[0. , 0.56853124, 0.43146876, 0. ]])}'';
zym=eval(zym)
加个np.array就可以了
import numpy as np
zym="{'人': np.array([[0. , 0.18934605, 0.81065395, 0. ],[0. , 0.56853124, 0.43146876, 0. ]])}"