양지수

정렬후 가중치삭제 날짜 추가 필요

Showing 1 changed file with 3 additions and 3 deletions
......@@ -82,10 +82,10 @@ for i in range(len(TfIf)-1):
TfIf[i].sort(key=lambda x:x[1], reverse=True) #가중치기준 내림차순 정렬
print(TfIf)
onlynouns = []
for i in range(len(TfIf)-1):
for i in range(len(TfIf)):
onlynouns.append([])
for j in range(len(TfIf[i])-1):
for k in range(len(TfIf[i][j])+1):
for j in range(len(TfIf[i])):
for k in range(len(TfIf[i][j])):
if k%2==0:
onlynouns[i].append(TfIf[i][j][k])
print(onlynouns)
......