会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ooops!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2020年6月3日
Powershell 检测设备管理器
摘要: Get-WmiObject -Class Win32_PNPEntity 获取设备信息 下图为其中一个设备的详细信息 Name存在且 PNPClass 为 $Null 的设备为其他设备(Other Devices) Status 为 "Error" 的设备为未正常工作设备(Yellow Bang)
阅读全文
posted @ 2020-06-03 19:50 ooops!
阅读(1515)
评论(0)
推荐(0)
2020年6月2日
Powershell 检测USB存储设备
摘要: 1.查看存储设备信息 1.1 Win32_LogicalDisk 获取本机逻辑磁盘(计算机中显示的盘符 C: D: E:等),包括硬盘,光驱,U盘等设备 Get-WmiObject -Class Win32_LogicalDisk 运行结果 DeviceID --> 盘符 DriveType -->
阅读全文
posted @ 2020-06-02 20:32 ooops!
阅读(2769)
评论(0)
推荐(0)
2019年11月30日
[轉載] AttributeError: module 'comtypes.gen.UIAutomationClient' has no attribute 'IUIAutomation'
摘要: 原作者: 程小丽 原文鏈接:https://blog.csdn.net/qq_30016059/article/details/102797911 使用 Pyinstaller 打包 導入Uiautomation的python 文件,在某些計算機上運行時出現 "AttributeError: mod
阅读全文
posted @ 2019-11-30 11:21 ooops!
阅读(2180)
评论(0)
推荐(0)
2019年10月17日
使用Pyinstaller对Python文件打包
摘要: 1.安装Pyinstaller pip install pyinstaller 2.对Python文件打包 pyinstaller.exe -F xxx.py #-F Create a one-file bundled executable 3.将文件一起打包到Python程序中 Python中使用
阅读全文
posted @ 2019-10-17 10:20 ooops!
阅读(278)
评论(0)
推荐(0)
2019年10月15日
Python使用uiautomation实现Windows平台自动化
摘要: 工具开发者 YinKaisheng 本文参考资料 https://www.cnblogs.com/Yinkaisheng/p/3444132.html https://github.com/yinkaisheng/Python-Automation-for-Windows 1.uiautomatio
阅读全文
posted @ 2019-10-15 19:37 ooops!
阅读(11693)
评论(0)
推荐(0)
2019年10月12日
Python 相對路徑
摘要: import os BASE_DIR1 = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR2 = os.path.dirname(os.path.abspath(__file__)) BASE_DIR3 = o
阅读全文
posted @ 2019-10-12 15:56 ooops!
阅读(264)
评论(0)
推荐(0)
Python使用Win32com實現 Excel多個Sheet截圖
摘要: 參考原文: python 对excel进行截图 1 from win32com.client import Dispatch, DispatchEx 2 import pythoncom 3 from PIL import ImageGrab, Image 4 import uuid 5 6 7 #
阅读全文
posted @ 2019-10-12 15:39 ooops!
阅读(1737)
评论(1)
推荐(0)
2019年8月31日
JavaScript 提取网页数据
摘要: 使用JavaScript在网页中提取数据 eg: 打开百度搜索 "博客园" ,提取搜索结果文字版 1.F12打开开发者工具 2.选中提取范围 3.获取HTML代码 4.根据HTML DOM 获取信息 l=document.querySelector("#content_left") ll=l.que
阅读全文
posted @ 2019-08-31 15:47 ooops!
阅读(2925)
评论(0)
推荐(0)
上一页
1
2
公告