How to convert the data type of the average value of a list to a list (python)?
such as :
import numpya = [1,2,3,4,5,6]b = numpy.average(a)print(b)print(type(b))
It turns out that :3.5,b The data type of is :numpy.float64
How to make b The data type of is converted to a list ? The result is :[3.5]