老师好,请教一个问题:如何实现在页脚那插入小图片?如在代码后面加上:p2.text = "内部试题,禁止泄露."
# 生成word试卷 def createPaper(filename, papername, questionlist): document = Document() # 页眉页脚的信息 section = document.sections[0] header = section.header p1 = header.paragraphs[0] p1.text = papername footer = section.footer p2 = footer.paragraphs[0] p2.text = "内部试题,禁止泄露."