Iterating through a table importing images
问题 Importing images using Python docx. Found some help from old post but unable to convert it to a 3 row, 2 col table. from docx import Document document = Document() tables = document.tables table = document.add_table(rows=1, cols=2) row_cells = table.add_row().cells **for i, image in enumerate(['image1.jpg', 'image2.jpg']): paragraph = row_cells[i].paragraphs[0]** run = paragraph.add_run() run.add_picture(image) document.save('doc.docx') I've adapted it to... document = Document() tables =