这个错误 'AttributeError: 'list' object has no attribute 'astype'' 表示尝试在列表对象上调用 astype 方法,但是列表对象没有 astype 属性。astype 是 NumPy 数组的方法,用于转换数组的数据类型。因此,可能需要将列表对象转换为 NumPy 数组类型才能使用 astype 方法。

Python 错误:AttributeError: 'list' object has no attribute 'astype'

原文地址: https://www.cveoy.top/t/topic/mX00 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录