import base64
import numpy as np
t = np.arange(25, dtype=np.float64)s = base64.b64enpre(t)r = base64.deprebytes(s)q = np.frombuffer(r, dtype=np.float64)print(np.allclose(q, t))# True
欢迎分享,转载请注明来源:内存溢出
import base64
import numpy as np
t = np.arange(25, dtype=np.float64)s = base64.b64enpre(t)r = base64.deprebytes(s)q = np.frombuffer(r, dtype=np.float64)print(np.allclose(q, t))# True
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)