自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 Working with Documents

Opening a document from docx import Document document = Document() document.save('test.docx') REALLY opening a document document = Document('existing-document-file.docx') document.save('new-file-nam...

2020-03-08 20:22:38 207

原创 应用样式

段落 document = Document() paragraph = document.add_paragraph() paragraph.style <docx.styles.style._ParagraphStyle object at <0x11a7c4c50> paragraph.style.name ‘Normal’ paragraph.sty...

2020-03-08 18:42:07 544

原创 页眉和页脚

访问节的标头 >>> document = Document() >>> section = document.sections[0] >>> header = section.header >>> header <docx.section._Header object at 0x...> 与上节相链接 >...

2020-03-08 17:59:28 156

原创 节-Working with Sections

>>> document = Document() >>> sections = document.sections >>> sections <docx.parts.document.Sections object at 0x1deadbeef> >>> len(sections) 3 >>> ...

2020-03-08 17:52:33 115

原创 Working with Text

block-level elements: like paragraphs inline-level objects : like runs. 通常,一个段落包含一个或多个运行,每个运行包含该段落的文本的一部分。 块级项目的属性指定其在页面上的位置,如段落前后的缩进和空格。 内联项的属性通常指定显示内容的字体,例如字体,字体大小,粗体和斜体。 水平对齐方式 >>> from ...

2020-03-08 17:26:03 188

原创 Windows10上安装MySQL8.0.19

第一步,下载安装软件MySQL8.0.19并解压。:https://dev.mysql.com/downloads/mysql/ 第二步,安装MySQL服务,命令“mysqld --install --console”。 ①管理员权限打开cmd, ②C:\Windows\system32>D:\mysql-8.0.19-winx64\bin\mysqld --initialize --co...

2020-03-08 13:06:43 383

原创 Python安装模块,优先pip install xxx

学习使用Python操作word,引用最简单的操作 自学之路,充满拦路虎。记录自己奋斗心血,以飨后学。 今天,我学习“用Python操作Word”,代码很简单,竟然也遇到了问题。代码和问题如下: 1.编辑如下代码测试。 from docx import Document #创建文本对象 document = Document() #添加标题 document.add_heading('第一个标题...

2020-03-08 09:09:11 372

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除