Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy copyto function example

# import the important module in python
import numpy as np
         
# make an array with numpy
softhunt = np.array([[1, 2, 3], [4, 5, 6]])
softhunt_array = [[9, 8, 7], [6, 5, 4]]
         
# applying numpy.copyto() method
np.copyto(softhunt, softhunt_array)
   
print(softhunt)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #copyto #function
ADD COMMENT
Topic
Name
1+7 =