Skip to content

Instantly share code, notes, and snippets.

@konabe
Created August 22, 2017 16:32
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 konabe/3fc53a39fd6028fb09f710b95de8640c to your computer and use it in GitHub Desktop.
Save konabe/3fc53a39fd6028fb09f710b95de8640c to your computer and use it in GitHub Desktop.
#Python3.X
import numpy as np
N = 10
p = np.empty(N, dtype=int)
for i in range(N):
p = i / N
print(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment