data = np.load("populations.npz", allow_pickle=True) feature_names = data["columns"] data = data["value"] 读入.npz的data的[]里面的字符串错误 用 for i in data print(i) 查看data的可用[]里面的字符串 修改后: data = np.load("populations.npz", allow_pickle=True) feature_names = data["feature_names"] data = data["data"]
raise KeyError("%s is not a file in the archive" % key) KeyError: 'columns is not a file in the arch
最新推荐文章于 2024-07-16 13:34:07 发布