Skip to content

Instantly share code, notes, and snippets.

@Keycatowo
Created February 1, 2022 09:09
Show Gist options
  • Save Keycatowo/a473fd1826b17f05c685eab7035f36a7 to your computer and use it in GitHub Desktop.
Save Keycatowo/a473fd1826b17f05c685eab7035f36a7 to your computer and use it in GitHub Desktop.
讀寫npy檔案
import numpy as np
array = np.array([
[1, "Apple", 10],
[2, "Book", 15],
]) # example
np.save(arr=array, file='example.npy')
array_back = np.load('example.npy')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment