python - 错误:没有足够的值来解包(预期 3,得到 1)
问题描述
filename = 'hw_25000.csv'
with open(filename, 'r') as infile:
data = infile.read().split('\n')
heights = []
weights = []
column = []
for row in data [1:] :
index, height, weight = row.split(',')
height = float(height)
weight = float(weight)
index = float (index)
解决方案
推荐阅读
- java - 按键对对象进行分组并创建树
- javascript - 如何使用 Dynamoose 正确查询索引
- spring-boot - Spring Webflux 上传大图像文件并使用 WebClient 以流的方式发送文件
- r - BiodiversityR::rankabundance() 函数不计算 plower 和 pupper 值
- arrays - 如何从分布在数组中多个字节的位中检索值?
- javascript - 从中获取行数
零件 - c - 我用 C 语言编写了一个程序,它接受两个输入,x 和 n,并将 x 提高到 n 次方。10^10 不起作用,发生了什么?
- r - I want to simulate and obtain best ARIMA ith number of time in R
- image-processing - skimage 分水岭“过度分割”背后的关键参数
- swift - Xcode 警告:不可变属性将不会被解码,因为它声明了一个不能被覆盖的初始值