f = open("C:/Users/xushaoshuai/Desktop/Solving-Job-Shop-Scheduling-Problems-master/instance/"+ins+".txt", 'r', encoding = 'utf-8-sig')
x = f.readlines()
f.close()
y = [i.split() for i in x]
z = [list(map(int,j)) for j in y]
m_array = np.array(z)
这段看不懂 +ins是指什么?是相当于代表那个txt吗? 还有 y、z后面看不懂怎么处理的 |
|