11 lines
391 B
Python
11 lines
391 B
Python
import docx
|
|
|
|
path = "PERANCANGAN SISTEM REKOMENDASI KAMERA PADA PERSEWAAN KAMERA DENGAN BERBASIS WEBSITE MENGUNAKAN ALGORITMA TOPSIS (Revisi 6 fix bismillah).docx"
|
|
doc = docx.Document(path)
|
|
|
|
for idx in range(660, 674):
|
|
p = doc.paragraphs[idx]
|
|
math_texts = [t.text for t in p._p.iter() if t.tag.endswith('}t')]
|
|
if math_texts:
|
|
print(f"P {idx}: '{p.text}' -> {math_texts}")
|