Skip to content

Instantly share code, notes, and snippets.

@kuredev
Created November 17, 2017 15:48
Show Gist options
  • Save kuredev/e5cc451003624dc4490a680de41d2994 to your computer and use it in GitHub Desktop.
Save kuredev/e5cc451003624dc4490a680de41d2994 to your computer and use it in GitHub Desktop.
Numpyのarangeの小さなメモ
import numpy as np
x = np.arange(-5.0, 5.0, 1.0)
print(type(x))
print(x)
@kuredev
Copy link
Author

kuredev commented Nov 17, 2017

# python narange.py
<class 'numpy.ndarray'>
[-5. -4. -3. -2. -1.  0.  1.  2.  3.  4.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment