狂自私

导航

上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页

2023年10月7日 #

python Excel添加Excel附件

摘要: # """ # 插入附件 import win32com.client if __name__ == "__main__": filename = r"23年09月.xlsx" xlApp = win32com.client.Dispatch('Excel.Application') xlApp.V 阅读全文

posted @ 2023-10-07 21:18 狂自私 阅读(188) 评论(0) 推荐(0) 编辑

2023年8月30日 #

SQL Server服务无法启动

摘要: 查看日志,发现有如下提示: SQL Server 无法生成 FRunCommunicationsManager 线程。请查看 SQL Server 错误日志和操作系统错误日志,获取有关可能发生的相关问题的信息。 由于网络库中存在内部错误,所以无法启动网络库。要确定原因,请查看错误日志中紧位于此错误之 阅读全文

posted @ 2023-08-30 16:04 狂自私 阅读(405) 评论(1) 推荐(0) 编辑

2023年7月12日 #

python解析xml

摘要: 主要是查询标签: import xml.dom.minidom s='''xml字符串''' ''' 这里做一些解释: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xml 阅读全文

posted @ 2023-07-12 14:37 狂自私 阅读(57) 评论(0) 推荐(0) 编辑

2023年6月29日 #

word VBA Selection.PasteSpecial 4198 运行时错误

摘要: If (.Execute) Then Selection.Copy '要定位到表格中 my_table.Cell(row_index, 1).Select 'Selection.Delete CreateObject("Excel.Application").Wait (Now + TimeValu 阅读全文

posted @ 2023-06-29 17:37 狂自私 阅读(154) 评论(0) 推荐(0) 编辑

2023年5月18日 #

PowerShell-将word另存为pdf

摘要: $folderPath = "D:\工作\temp\2023年4月19日" $folderPathOut = "D:\工作\temp\2023年4月19日" $wordFiles = Get-ChildItem -Path $folderPath -Filter "*.docx" try{ Get- 阅读全文

posted @ 2023-05-18 15:05 狂自私 阅读(53) 评论(0) 推荐(0) 编辑

2023年5月13日 #

PowerShell-get-counter-算机上找不到任何性能计数器集: 错误 800007d0

摘要: #已经解决了,感谢国外大神的解答:https://techcommunity.microsoft.com/t5/windows-powershell/get-counter-could-not-find-any-performance-counter-sets-on-the/m-p/3811330/ 阅读全文

posted @ 2023-05-13 17:33 狂自私 阅读(90) 评论(0) 推荐(0) 编辑

2023年5月8日 #

python-手动借助google翻译来翻译文档

摘要: 1 import os 2 import re 3 ''' 4 读取指定的html文件 5 去掉所有的换行符 6 正则匹配特定项目:(?<=<div class="block">).+?(?=</div>) 7 然后替换掉:</code>|<code>|<i>|</i> ==> "" 8 <sup> 阅读全文

posted @ 2023-05-08 18:42 狂自私 阅读(24) 评论(0) 推荐(0) 编辑

2023年5月4日 #

profile.ps1 : 无法使用点 '.' 获得此命令来源,因为该命令是在不同语言模式下定 义的。要调用此命令而不导入其内容,请忽略 '.' 运算符。

摘要: 使用自定义的PowerShell配置文件(所有用户,所有主机的情况下): 打开PowerShell提示: C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1 : 无法使用点 '.' 获得此命令来源,因为该命令是在不同语言模式下定 义的。要调用 阅读全文

posted @ 2023-05-04 10:29 狂自私 阅读(148) 评论(0) 推荐(0) 编辑

2023年5月3日 #

PowerShell-自定义的配置文件

摘要: PowerShell 5.1 一般Windows 10自带的是这个版本的PowerShell,这个版本的自定义配置文件的文件编码要保存为ANSI才行。 PowerShell 7 这个是通过github另外下载的,这个版本的自定义配置文件的文件编码要保存为utf-8才行。 配置文件代码 其实也没啥,主 阅读全文

posted @ 2023-05-03 12:09 狂自私 阅读(224) 评论(0) 推荐(0) 编辑

python-docx的简单使用

摘要: 安装docx库: pip install python-docx 导入库:import docx 新建一个空白文档: word_doc = docx.Document() 新建一个段落:paragraph=word_doc.add_paragraph('输变电在线监测装置可用率周报') 给这个段落设 阅读全文

posted @ 2023-05-03 08:28 狂自私 阅读(77) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页