backTop
摘要: Get-WmiObject -Class Win32_PNPEntity 获取设备信息 下图为其中一个设备的详细信息 Name存在且 PNPClass 为 $Null 的设备为其他设备(Other Devices) Status 为 "Error" 的设备为未正常工作设备(Yellow Bang) 阅读全文
posted @ 2020-06-03 19:50 ooops! 阅读(1345) 评论(0) 推荐(0) 编辑
摘要: 1.查看存储设备信息 1.1 Win32_LogicalDisk 获取本机逻辑磁盘(计算机中显示的盘符 C: D: E:等),包括硬盘,光驱,U盘等设备 Get-WmiObject -Class Win32_LogicalDisk 运行结果 DeviceID --> 盘符 DriveType --> 阅读全文
posted @ 2020-06-02 20:32 ooops! 阅读(2267) 评论(0) 推荐(0) 编辑
摘要: 原作者: 程小丽 原文鏈接:https://blog.csdn.net/qq_30016059/article/details/102797911 使用 Pyinstaller 打包 導入Uiautomation的python 文件,在某些計算機上運行時出現 "AttributeError: mod 阅读全文
posted @ 2019-11-30 11:21 ooops! 阅读(2034) 评论(0) 推荐(0) 编辑
摘要: 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! 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 工具开发者 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! 阅读(11082) 评论(0) 推荐(0) 编辑
摘要: 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! 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 參考原文: 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! 阅读(1644) 评论(1) 推荐(0) 编辑
摘要: 使用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! 阅读(2840) 评论(0) 推荐(0) 编辑