python-TypeError: write() argument must be str, not numpy.float64

来源:互联网 发布:60魔兽世界数据库 编辑:程序博客网 时间:2024/05/21 09:29

python
TypeError: write() argument must be str, not numpy.float64
出现该问题的时候需要进行数据类型的转换

错误前f.write(data_y[i])错误后f.write(str(data_y[i]))
阅读全文
0 0
原创粉丝点击