python导入数据绘制_python实现从文件中读取数据并绘制成 x y 轴图形的方法
如下所示:import matplotlib.pyplot as pltimport numpy as npdef readfile(filename):dataList = []dataNum = 0with open(filename,'r') as f:for line in f.readlines():linestr = line.strip('n')if len(linestr) <...