Python 讀取TXT文本數據並存爲 array

方法一 str -> list -> array import numpy as np f = open(r"D:\data.txt") line = f.readline() data_list = [] while line: num = list(map(float,line.split())) data_list.append(num) line = f.readl
相關文章
相關標籤/搜索