一图看懂 docx 读取、查询、修改 Ms Word docx 文件, 资料整理+笔记(大全)

本文由 大侠(AhcaoZhu)原创,转载请声明。
链接: https://blog.csdn.net/Ahcao2008

Alt

一图看懂 docx 读取、查询、修改 Ms Word docx 文件, 资料整理+笔记(大全)

摘要

全文介绍系统内置 python- docx 模块、函数、类及类的方法和属性。
它通过代码抓取并经AI智能翻译和人工校对。
是一部不可多得的权威字典类工具书。它是系列集的一部分。后续陆续发布、敬请关注。【原创:AhcaoZhu大侠】

模块

docx
	docx.opc◎
	docx.compat
	docx.shared
	docx.image◎
	docx.exceptions
	docx.enum◎
	docx.oxml◎
	docx.parts◎
	docx.package
	docx.api
	docx.text◎
	docx.dml◎
	docx.shape
	docx.blkcntnr
	docx.section
	docx.document
	docx.settings
	docx.styles◎
    docx.table??
 ◎--package
 ??--需要单独装载

docx - modules
docx-module

类的关系图

docx-class

◆object
	◆BaseException
		◆Exception
			docx.exceptions.PythonDocxError
				docx.exceptions.InvalidSpanError
				docx.exceptions.InvalidXmlError
	◆collections.abc.Container
		◆collections.abc.Iterable
			◆collections.abc.Sized
				◆collections.abc.Collection
					◆collections.abc.Reversible
						◆collections.abc.Sequence
							docx.section.Sections
	docx.enum.Enumeration
	docx.enum.base.Enumeration
		docx.enum.base.XmlEnumeration
			docx.enum.section.WD_HEADER_FOOTER_INDEX
			docx.enum.section.WD_SECTION_START
			docx.enum.style.WD_STYLE_TYPE
	docx.enum.shape.WD_INLINE_SHAPE_TYPE
	docx.enum.text.WD_BREAK_TYPE
	docx.image.image.BaseImageHeader
		docx.image.bmp.Bmp
		docx.image.gif.Gif
		docx.image.jpeg.Jpeg
			docx.image.jpeg.Exif
			docx.image.jpeg.Jfif
		docx.image.png.Png
		docx.image.tiff.Tiff
	docx.image.image.Image
	docx.opc.constants.CONTENT_TYPE
	docx.opc.constants.RELATIONSHIP_TYPE
	docx.opc.package.OpcPackage
		docx.package.Package
	docx.opc.part.Part
		docx.parts.image.ImagePart
	docx.oxml.simpletypes.BaseSimpleType
		docx.oxml.simpletypes.BaseStringType
			docx.oxml.simpletypes.BaseStringEnumerationType
				docx.oxml.simpletypes.XsdStringEnumeration
					docx.oxml.simpletypes.ST_Merge
	docx.package.ImageParts
	docx.section.Section
	docx.shape.InlineShape
	docx.shared.ElementProxy
		docx.document.Document
		docx.settings.Settings
	docx.shared.Parented
		docx.blkcntnr.BlockItemContainer
			docx.document._Body
			docx.section._BaseHeaderFooter
				docx.section._Footer
				docx.section._Header
			docx.table._Cell
		docx.shape.InlineShapes
		docx.table.Table
		docx.table._Column
		docx.table._Columns
		docx.table._Row
		docx.table._Rows
		docx.text.paragraph.Paragraph
	docx.styles.BabelFish
	◆int
		docx.shared.Length
			docx.shared.Cm
			docx.shared.Emu
			docx.shared.Inches
			docx.shared.Mm
			docx.shared.Pt
			docx.shared.Twips
	◆lxml.etree._Element
		◆lxml.etree.ElementBase
			docx.oxml.xmlchemy.BaseOxmlElement
				docx.oxml.coreprops.CT_CoreProperties
				docx.oxml.document.CT_Body
				docx.oxml.document.CT_Document
				docx.oxml.numbering.CT_Num
				docx.oxml.numbering.CT_NumLvl
				docx.oxml.numbering.CT_NumPr
				docx.oxml.numbering.CT_Numbering
				docx.oxml.section.CT_HdrFtr
				docx.oxml.section.CT_HdrFtrRef
				docx.oxml.section.CT_PageMar
				docx.oxml.section.CT_PageSz
				docx.oxml.section.CT_SectPr
				docx.oxml.section.CT_SectType
				docx.oxml.settings.CT_Settings
				docx.oxml.shape.CT_Blip
				docx.oxml.shape.CT_BlipFillProperties
				docx.oxml.shape.CT_GraphicalObject
				docx.oxml.shape.CT_GraphicalObjectData
				docx.oxml.shape.CT_Inline
				docx.oxml.shape.CT_NonVisualDrawingProps
				docx.oxml.shape.CT_Picture
				docx.oxml.shape.CT_PictureNonVisual
				docx.oxml.shape.CT_Point2D
				docx.oxml.shape.CT_PositiveSize2D
				docx.oxml.shape.CT_ShapeProperties
				docx.oxml.shape.CT_Transform2D
				docx.oxml.shared.CT_DecimalNumber
				docx.oxml.shared.CT_OnOff
				docx.oxml.shared.CT_String
				docx.oxml.styles.CT_LatentStyles
				docx.oxml.styles.CT_LsdException
				docx.oxml.styles.CT_Style
				docx.oxml.styles.CT_Styles
				docx.oxml.table.CT_Height
				docx.oxml.table.CT_Row
				docx.oxml.table.CT_Tbl
				docx.oxml.table.CT_TblGrid
				docx.oxml.table.CT_TblGridCol
				docx.oxml.table.CT_TblLayoutType
				docx.oxml.table.CT_TblPr
				docx.oxml.table.CT_TblWidth
				docx.oxml.table.CT_Tc
				docx.oxml.table.CT_TcPr
				docx.oxml.table.CT_TrPr
				docx.oxml.table.CT_VMerge
				docx.oxml.table.CT_VerticalJc
				docx.oxml.text.font.CT_Color
				docx.oxml.text.font.CT_Fonts
				docx.oxml.text.font.CT_Highlight
				docx.oxml.text.font.CT_HpsMeasure
				docx.oxml.text.font.CT_RPr
				docx.oxml.text.font.CT_Underline
				docx.oxml.text.font.CT_VerticalAlignRun
				docx.oxml.text.paragraph.CT_P
				docx.oxml.text.parfmt.CT_Ind
				docx.oxml.text.parfmt.CT_Jc
				docx.oxml.text.parfmt.CT_PPr
				docx.oxml.text.parfmt.CT_Spacing
				docx.oxml.text.parfmt.CT_TabStop
				docx.oxml.text.parfmt.CT_TabStops
				docx.oxml.text.run.CT_Br
				docx.oxml.text.run.CT_R
				docx.oxml.text.run.CT_Text
	◆str
		docx.opc.packuri.PackURI
		docx.oxml.ns.NamespacePrefixedTag
	◆tuple
		docx.shared.RGBColor
◆-- External class, not in docx module		

模块全展开

统计

序号 类别 数量
4 str 5
6 list 1
8 dict 1
9 module 19
10 class 2
11 function 1
13 residual 3
14 system 10
16 all 32

【docx】

docx, fullname=docx, file=docx_init_.py

常量

模块

1 docx.opc

opc, fullname=docx.opc, file=docx\opc_init_.py

2 docx.compat

compat, fullname=docx.compat, file=docx\compat.py

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

AhcaoZhu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值