Python Numpy AscontiguousArray Function Contoh Daftar ke Array
# welcome to softhunt.net
# Python program explaining
# numpy.ascontiguousarray() function
import numpy as np
my_list = [1, 2, 3, 4, 5, 6]
print ("Input list : ", my_list)
out_arr = np.ascontiguousarray(my_list, dtype = np.float32)
print ("output array from input list : ", out_arr)
Outrageous Ostrich