关于下列代码有一处错误,请找出>;>;>; from docx import Document>;>;>; document = Document()#(1)>;>;>; document.add_paragraph('Hello world') #(2)>;>;>;document.add_paragraph('I love you')>;>;>; document.save(test.docx)#(3)>;>;>; for p in document.paragraphs:#(4)print(p.text)#(5)
A: (1)
B: (2)
C: (3)
D: (4)
A: (1)
B: (2)
C: (3)
D: (4)
举一反三
- 修改xml文件的步骤,正确的顺序应该是()。(1)读取xml文件放入document中。(2)对document中的指定属性值内容进行修改。(3)将document写入到xml中。 A: 1、2、3 B: 2、1、3 C: 3、1、2 D: 2、3、1
- Which of the following components is not part of a sales document?() A: Document header. B: Document feed. C: Document items.
- 操作docx文档的python-docx模块中,docx文档没有下列________________对象: A: Document B: Paragraph C: Run D: Worksheet
- A is a single text data point. The is the collection of all the documents. A: Feature; document B: Corpus; feature C: Document; feature D: Feature; document
- The RFC document is the working document of which of the following standardization organizations?( )