2020
12-03
12-03
python二维图制作的实例代码
python全代码如下importreimportcsvimportmatplotlib.pyplotaspltx=[]y=[]m=eval(input())#输入折线条数foriinrange(m):y.append([])fo=open("E:\\shu\\2.txt","r",encoding='UTF-8')plt.ylim(0,20)#设定y轴范围forlineinfo.readlines():#按行输入line=line.split("\n")[0]#分割ifline!="":判定是否为空don=line.split("")x.append(don[0])foriinrange(len(don)-1):y[i].appen...
继续阅读 >