import numpy
world= numpy.genfromtxt("world_alcohol.txt", delimiter=",", dtype="U75", skip_header=1)
#读取数据,以“,”分隔
print(type(world))
vector = numpy.array([5, 10, 15, 20])
print(vector.shape)
numpy
最新推荐文章于 2021-10-16 15:39:17 发布
import numpy
world= numpy.genfromtxt("world_alcohol.txt", delimiter=",", dtype="U75", skip_header=1)
#读取数据,以“,”分隔
print(type(world))
vector = numpy.array([5, 10, 15, 20])
print(vector.shape)