Skip to content

Instantly share code, notes, and snippets.

@Robofied
Created February 15, 2019 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Robofied/26c54fc670726e6b2e3eb88f680a24f9 to your computer and use it in GitHub Desktop.
Save Robofied/26c54fc670726e6b2e3eb88f680a24f9 to your computer and use it in GitHub Desktop.
Numpy
import numpy as np
a = np.arange(6).reshape(2,3)
for x in np.nditer(a):
print (x,end=",")
#[Output]:
#0,1,2,3,4,5,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment