上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: import docx doc1 =docx.Document(r"C:\Users\Administrator\Desktop\test.docx") doc1.paragraphs[0].runs[0].add_break(docx.enum.text.WD_BREAK.PAGE) #插入分页符 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(646) 评论(0) 推荐(0) 编辑
摘要: TablesOfContents.Add 方法 (Word) 返回一 个 TableOfContents 对象,该对象代表添加到文档中的目录。 语法 表达式.Add (Range, UseHeadingStyles, UpperHeadingLevel, LowerHeadingLevel, Use 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(120) 评论(0) 推荐(0) 编辑
摘要: doc=Document()#创建一个空白文档 p=doc.add_paragraph()#给文档增加一个段落 p.paragraph_format.space_before=Pt(0)#设置段落 段前 0 磅 p.paragraph_format.space_after=Pt(0) #设置段落 段 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(468) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Sat Oct 24 17:21:31 2020 pip install -i https://mirrors.aliyun.com/pypi/simple/ docx 参考文档 https://python-docx.r 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(1355) 评论(0) 推荐(0) 编辑
摘要: from docx import Document from docx.enum.text import WD_PARAGRAPH_ALIGNMENT from docx.shared import Inches from docx import Document from docx.enum.te 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 运行路劲和当前文件真实路径不是一个!! 解决 real_dir = os.path.dirname(os.path.realpath(sys.executable)) 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(1537) 评论(1) 推荐(0) 编辑
摘要: Linux 给用户 赋某个文件夹操作的权限 这里用的ubuntu16.04 一、配置网站管理员 linux文件或目录的权限分为,读、写、可执行三种权限。文件访问的用户类别分为,文件创建者、与文件创建者同组的用户、其他用户三类。 添加用户 useradd -d /var/www/html webadm 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(6562) 评论(0) 推荐(1) 编辑
摘要: Python3_数据类型和变量 一、数据类型 Python有五个标准的数据类型: Numbers(数字) String(字符串) List(列表) Tuple(元组) Dictionary(字典) 在Python中,能够直接处理的数据类型有以下几种: 1、整数 Python中的整数类型与数学中的整数 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Python3 while循环 当循环次数无界时通常会使用while循环。 1、使用while循环输出九九乘法表 i=1 while i < 10: j = 1 while j < i + 1: #print(j, '×', i, '=', i * j, sep='', end='\t') prin 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Python3循环结构 在Python中主要有两种类型的循环结构:for循环和while循环。for循环一般用于有明显边界范围的情况,例如,计算1+2+3+4+5+…+100等于几的问题,就可以用for循环求解。While循环一般应用于循环次数难以确定的情况。下面分别介绍这两种循环结构。 for循环 阅读全文
posted @ 2022-11-21 21:20 那酒不要留 阅读(535) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
/* 雪花特效 */