DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Get the first 4 numbers of the innermost arrays using numpy
a4 = np.random.randint(10, size=(2, 3, 4, 5)) a4[:, :, :, :4]
PREVIOUS
NEXT
Tagged:
#Get
#numbers
#innermost
#arrays
#numpy
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit