码迷,mamicode.com
首页 >  
搜索关键字:pt 6.0    ( 1051个结果
使用python将文字写入word文档中
pip install python-docx 1.批量化往word文件中添加大批量重复的数据 from docx import Document from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.shared import Pt #磅数 ...
分类:编程语言   时间:2020-07-28 00:24:17    阅读次数:113
C# 控件.PointToScreen 遇到的问题
先上一点代码。 //Btn 是已知的button Point pt = Btn.PointToScreen(new System.Windows.Point(0, 0)); MessageBox.Show("Button " + pt.X.ToString() + " " + pt.Y.ToStri ...
分类:Windows程序   时间:2020-07-18 00:34:16    阅读次数:92
单独设置首页的页眉页脚
from docx import Document from docx.shared import Pt from docx.enum.text import WD_ALIGN_PARAGRAPH #导入对齐库 文件=Document(r'E:\word练习\页眉页脚.docx') 第一节=文件.s ...
分类:其他好文   时间:2020-07-12 12:19:36    阅读次数:69
写一函数,求一个字符串的长度。在main函数中输入字符串,并输出其长度
写一函数,求一个字符串的长度。在main函数中输入字符串,并输出其长度。 解题思路: 字符串以\0作为结尾,则从第一个字符开始向后移动遇到\0认为字符串结束。 答案: #include <stdio.h> int mystrlen(char *str) { int len = 0; char *pt ...
分类:其他好文   时间:2020-07-09 19:20:11    阅读次数:89
段落缩进
from docx import Document from docx.shared import Pt,Inches #Pt指镑(int类型),Inches指英寸(float类型) w=Document(r'D:\word练习\练习.docx') for paragraph in w.paragr ...
分类:其他好文   时间:2020-07-08 22:51:25    阅读次数:65
67.python操作word文档
1.python操作word文档: import docx from docx.oxml.ns import qn from docx.shared import Pt, RGBColor, Inches from docx.enum.text import WD_PARAGRAPH_ALIGNME ...
分类:编程语言   时间:2020-07-06 10:51:25    阅读次数:71
facenet应用记录
###准备 安装facenet-pytorch及其相关包 pip install facenet-pytorch 模型下载,提取码: 74s4 vggface2_*.pt,两个文件存放于~/.cache/torch/checkpoints/ ###代码 from facenet_pytorch im ...
分类:Web程序   时间:2020-07-05 19:43:42    阅读次数:64
C连载12-float类型上、下溢以及打印格式说明
一、打印float类型 %f来表示float和double类型的数字 %e来打印指数记数法的浮点数 如果系统支持十六进制的浮点数,可以使用a和A分别来代替e和E 打印long double类型要使用%Lf或%Le或%La来替代 #include<stdio.h> int D12_1_showf_pt ...
分类:其他好文   时间:2020-07-04 01:43:16    阅读次数:77
linux下查看进程+杀死进程方法大全
常规篇: 首先,用ps查看进程,方法如下: $ ps -ef ……smx 1822 1 0 11:38 ? 00:00:49 gnome-terminalsmx 1823 1822 0 11:38 ? 00:00:00 gnome-pty-helpersmx 1824 1822 0 11:38 pt ...
分类:系统相关   时间:2020-07-03 15:26:54    阅读次数:72
QtCursor::setPos设置光标位置的方法
我们可以通过QtCursor::setPos全局方法来进行鼠标位置的设置 以下的代码演示将光标移动到控件的左上角上。先将0,0点转换到桌面坐标 //QWidget* pWidget;QPoint pt(0,0);QPoint center = pWidget->mapToGlobal(pt);QCu ...
分类:其他好文   时间:2020-06-29 22:52:30    阅读次数:227
1051条   上一页 1 2 3 4 ... 106 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!