如下所示:
# -*- coding: utf-8 -*-
Created on Thu Jun 07 09:17:40 2018
@author: yjp
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
y0 = []
y1 = []
y2 = []
y3 = []
y4 = []
f = open(y0.txt)
lines = f.readlines()
for li in line
1