@ChatPython

Страница 4 из 228
Vladislav
31.08.2017
07:44:18
Привет всем, есть вопрос по docx. Мне нужно на первую строчку документа добавить информацию, но не получается, если просто использовать add_paragraph он добавляет на след. странице, а мне надо на первой. Hello everyone. Need help with docx. I need change document for add paragraph in first line of document. But i don't know how i can realize it. Sry for my english :) from docx import Document f = open('manual.docx', 'rb') document = Document(f) document.sections[0].headers[0].add_paragraph(text='moar header') document.save('test.docx') f.close() AttributeError: 'Section' object has no attribute 'headers'

Сергей
31.08.2017
10:09:07
Версия какая?

Vladislav
31.08.2017
11:07:35
3.5

Sergey
31.08.2017
11:24:12
вата фак! идите в https://t.me/Python там на иглише обшаются @Kamollidin @metalbrother

Google
Sergey
31.08.2017
11:24:12
just write if you will have problems

ok

Kamoliddin
31.08.2017
12:13:38
вата фак! идите в https://t.me/Python там на иглише обшаются @Kamollidin @metalbrother
какая разница на каком языке разговаривать



Страница 4 из 228