How to convert a float numpy.ndarray to list?

后端 未结 0 1974
抹茶落季
抹茶落季 2021-01-15 15:08

here is my code

import numpy
a = numpy.arange(0.5, 1.5, 0.1, dtype=numpy.float64)
print(a)
print(a.tolist())

>>>[0.5 0.6 0.7 0.8 0.9 1.  1.1 1.2 1.3         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题