Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import numpy as np
a1=np.zeros([1,2])
print (a1)
#Output:[[0. 0.]]
a2=np.zeros([1,2],dtype=int)
print (a2)
#Output: [[0 0]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment