跳至主要內容

Python office操作方法总结

周子力小于 1 分钟教学文档Python

Python office操作方法总结

1. office文档结构特点

不管是word,PPT还是excel文档,都是一种类型。那就是文档,文档模块和更小的模块。

  • word picture 1
  • PPT picture 0
  • excel picture 0

2. office文档结构与Python代码映射

  • word 文档:document 段落:paragraph 段落内容:run 表格:Table ...

  • PPT 文档:presentation 形状:shape(多种形状) 段落:paragraph 段落内容:run

  • excel 文档:wordbook 表:sheet 单元:cell

3.Python代码特点

创建一个文档,或段落,然后返回该文档,或段落。 然后对文档或段落等进行样式的设置。

上次编辑于:
贡献者: zilizhou