from wordcloud import WordCloud Z=[] sonad=[] sonakogused={} for rida in open("sonaseosed.txt", encoding="utf-8"): m=rida.strip().split(",") Z.append([int(m[1]), int(m[2]), float(m[3]), int(m[4])]) for rida in open("sonaindeksid.txt", encoding="utf-8"): sonad.append(rida.strip().split(",")[1]) for rida in open("sonakogused.txt", encoding="utf-8"): m=rida.strip().split(" ") try: sonakogused[m[0]]=int(m[1]) except: print(m) def uuriPuu(indeks, tase=0, vana=0): if indeks50: fsisu="" fsisu+="tagasi
" fsisu+="
" fsisu+="  
" fsisu+="  
" fsisu+="" f=open("pilved5/"+str(indeks)+".html", "w", encoding="utf-8") print(fsisu, file=f); f.close() return vastus uuriPuu(len(sonad)+len(Z)-1, 0, len(sonad)+len(Z)-1)