会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Picassooo
博客园
首页
新随笔
联系
订阅
管理
2019年11月30日
python读入txt数据,并转成矩阵
摘要: 比如有一个txt文件,里面的内容长这样: 如何用Python读取这些数据? 方法一:用np.loadtxt函数 程序: data = np.loadtxt('data.txt', dtype=np.float32, delimiter=' ') 方法二:自定义数据读取函数 程序: import nu
阅读全文
posted @ 2019-11-30 23:00 Picassooo
阅读(17690)
评论(0)
推荐(1)
编辑
公告