import matplotlib.pyplot as plt
plt.rcParams['font.family'] ='Malgun Gothic'
import matplotlib
matplotlib.rcParams['axes.unicode_minus'] = False
f = open("data.txt", 'r')
mes = []
cnt = 0
while True:
line = f.readline()
fit = line[0:-1].split('\t')
for i in range(len(fit)):
# add more here
if fit == ':':
fit[cnt:] = list(map(int, fit))
else:
cnt = cnt + 1
if not line: break
# print(fit)
data = {}
# s = data[fit[0]]
data[fit[0]] = ', '.join(fit[1:])
print('>>>>', data)
vvv = fit[3:-1]
plt.plot(vvv)
# print(data)
mes.append(data)
f.close()
for i in range(len(mes)):
plt.show()
print(mes[i])
# import matplotlib.pyplot as plt
# plt.plot([10, 20, 30])
# plt.plot([50, 40, 10])
# plt.show()