Save and Read .npz file in Python - Xiao-Le Deng (邓小乐)

Xiao-Le Deng (邓小乐)

HomeResearchPublicationsToolsDaoLifeTagsSearchAbout

Save and Read .npz file in Python

2021-12-21
#Python

1. Save .npz file

import numpy

numpy.savez('name', x, y, z, arr_name = a)

2. Read .npz file

import numpy

data = numpy.load('name.npz')
data.files

3. References

  • Python读取.npz文件 - 简书
  • numpy.savez — NumPy v1.21 Manual
——
2012 – 2025 © Xiao-Le Deng · Powered by Simple Style