Created
February 1, 2022 09:09
-
-
Save Keycatowo/a473fd1826b17f05c685eab7035f36a7 to your computer and use it in GitHub Desktop.
讀寫npy檔案
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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