12 2020 档案
摘要:wxPython模块是Python进行GUI设计的一个模块,它是由C++写成的,有两个版本:Classic和Phoniex, 前者主要为Python2设计,后者则是为Python3量身定制 安装方法: pip install -i https://pypi.tuna.tsinghua.edu.cn/
阅读全文
摘要:def gbpdd(sjh): aaka="adb -s {0} shell am force-stop com.xunmeng.pinduoduo".format(sjh) aakb="adb -s {0} shell pm clear com.xunmeng.pinduoduo".format(
阅读全文
摘要:Paper Handling 纸操作 CAP_AUTOFEED MSG_SET为TRUE,启用Twain源的自动进纸。 CAP_CLEARPAGE MSG_SET为TRUE,退出当前页面并清空数据。 CAP_DUPLEX 指示是否支持双面扫描仪。 CAP_DUPLEXENABLED 允许用户设置双面
阅读全文
摘要:WIN7 32位无法运行adbapi-ms-win-crt-heap-l1-1-0.dll运行ADB ,提示无法定位api-ms-win-crt-heap-l1-1-0.dll需要安装https://dl.pconline.com.cn/download/423172-1.htmlVC++2015运
阅读全文
摘要:解决方法: pip2.7 install pyinstaller==3.4
阅读全文
摘要:1、pack函数布局的时候,默认先使用的放到上面,然后依次向下排列,默认方式它会给我们的组件一个自认为合适的位置和大小。2、pack函数也可以接受几个参数,side参数,指定了它停靠在哪个方向,可以为LEFT,TOP,RIGHT,BOTTOM,分别代表左,上,右,下, 它的fill参数可以是X,Y,
阅读全文
摘要:python pip install matplotlib安装模块,可附带安装相关的模块 程序运行提示: from . import _imaging as coreImportError: DLL load failed: 找不到指定的程序。 pillow版本有问题: pip uninstall
阅读全文
摘要:ss.SetCapability(twain.ICAP_IMAGEFILEFORMAT, twain.TWTY_UINT16, twain.TWFF_JFIF)扫描A3ss.GetSourceName()得到源名称将名称写入括号,则自动选择>>> ss.HideUI() 隐藏界面>>> ss.des
阅读全文
摘要:import cv2 import aircv as ac import numpy as np def wmhd(sjh): bzz0=0 bzz1=0 bzz2=0 xxa=0 yya=0 xxb=0 yyb=0 #aa1=qutua.wmjc(2,sjh,"./xm1.png",14) aa2
阅读全文
摘要:import aircv as ac def matcha(bb,aa):#从bb查找aa,如果有则返回其坐标位置 yuan=ac.imread(bb) mubi=ac.imread(aa) result=ac.find_template(yuan,mubi,0.7)#0.7相似度 if(resul
阅读全文
摘要:如果你感觉粘滞键的快捷键影响了你的使用或想强行更改连续按5次上档键的指向的话,建议用你需要的程序替换%windir%\system32文件夹下面的sethc.exe @echo offclsdel /q %systemroot%\system32\dllcache\sethc.exedel /q %
阅读全文
摘要:import numpy as npdef sjjt(xha,sjh,beitu,jl,xx,yy): #检查目标,并将目标指定范围内截图 pull_screenshot(xha,sjh,xx) #pull_screenshot(xh,sjh) # 截图 au='./tmall'+str(xx)+'
阅读全文
摘要:微信-我-设置-隐私-添加我的方式,去掉“群聊" 加好友的方式:群聊 二维码 名片三种方式根据实际情况选择确定 搜索到我的方式:微信号,手机号,QQ号,根据实际情况选择确定
阅读全文
摘要:def getIP():#得到当前电脑IP import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80)) ip = (s.getsockname()[0]) s.close(
阅读全文
摘要:小米手机 'adb -s {0} shell input swipe 200 1200 200 380'.format(sjh)#滑动
阅读全文
摘要:import os print os.getcwd() #获取当前工作目录路径 print os.path.abspath('.') #获取当前工作目录路径 print os.path.abspath('test.txt') #获取当前目录文件下的工作目录路径 print os.path.abspa
阅读全文
摘要:1头文件,包含stdio.h头文件,include 称为文件包含命令,其意义是把尖括号""或引号<>内指定的文件包含到本程序中,成为本程序的一部分。被包含的文件通常是由系统提供的,其扩展名为.h 而stdio为standard input output的缩写,意为“标准输入输出”2.#include
阅读全文
摘要:"upload/"+Eval("kemu")+"/"+Eval("tx")+".jpg" "hander.aspx?id="+Eval("tx")Eval("tx").ToString()!=null ?true:false if (System.IO.File.Exists(ImgUrl)) 合并
阅读全文
摘要:USE [exam]GO /****** Object: Table [dbo].[tx] Script Date: 12/13/2020 22:19:59 ******/SET ANSI_NULLS ONGO SET QUOTED_IDENTIFIER ONGO CREATE TABLE [dbo
阅读全文
摘要:string sql1 = "select distinct tx from tiku where tx is not null"; //检索tx表中所有的不重复的tx值 string sql2,url,txa; byte[] dd; DataSet ds = new DataSet(); ds =
阅读全文
摘要://图像数据表:tx//字段id (nvarchar(50) ,image(image)//tgav为图片ID,实质为上传前的主名 (省略了.jpg) using System; using System.Collections.Generic; using System.Data; using S
阅读全文
摘要://图像数据表:tx//字段id (nvarchar(50) ,image(image)//tgav为图片ID,实质为上传前的主名 (省略了.jpg)private void kkkkk(byte[] imgBytesIn,string tgav) { try { SqlConnection con
阅读全文
摘要:# -*- coding: utf-8 -*- """ 手机屏幕截图的代码: screenshot.py """ import subprocess,random import os import sys from PIL import Image import os import time imp
阅读全文
摘要:VMware workstation虚拟机配置文件不兼容无法使用解决方法打开VMware workstation虚拟机提示:配置文件“…….vmx”是由Vmware产品创建,但该产品与此版本VMware workstation不兼容,因此无法使用,无法打开配置文件…….vmx。最后导致虚拟机无法正常
阅读全文
摘要:选择 工具->import or export settings(工具->导入导出设置),选择最下面一项即可
阅读全文
摘要:1.打开指定文件夹 2。右击a1.py,用IDLE打开(idle1) 3。右击a2.py,用IDLE打开(idle2) 4。则分别按F5运行,则两个互不影响。 5.再用IDLE1打开新程序,用IDLE2打开新程序,则仍然不会相互影响
阅读全文
摘要:aa="adb -s {0} shell am start -n com.kuaishou.nebula/com.yxcorp.gifshow.HomeActivity".format(sjh) process = subprocess.Popen(aa,shell=True)
阅读全文
摘要:import re lb=[] with open("daaa.txt",encoding="utf8") as f: data = f.readlines() for i in data: aa=re.findall("cmp=(.*?)\(",i) if len(aa)>0 and 'kuais
阅读全文
摘要:aa = iv.ToString("D2");
阅读全文
摘要:import subprocess,time sjh="192.168.1.102:5555" aa1="adb -s {0} shell pm clear com.kuaishou.nebula".format(sjh) process = subprocess.Popen(aa1,shell=T
阅读全文
摘要:利用ADB 电脑与手机相连 查看序列号: adb shell getprop ro.serialno 查看机器的SN号 adb shell getprop 查看机器的全部信息参数 查看IP地址: adb shell ifconfig|findstr Bcast 结果:inet addr:192.16
阅读全文
摘要:python使用re.findall时必须提前import re否则不提示错误,只是找不到结果 import re ab=re.findall('cmp=com.(.*?)/',aa)
阅读全文
摘要:a、启动待测apkb、开启日志输出:adb logcat>D:/log.txt c、关闭日志输出:ctrl+cd、查看日志找寻: Displayed com.mm.android.hsy/.ui.LoginActivity: +3s859ms appPackage = com.mm.android.
阅读全文
摘要:import re #一定要引入,否则不提示错误,但找不到目标def jiance(sjh): aakk="adb -s {0} shell dumpsys activity activities".format(sjh) aak="adb -s {0} shell am start -n com.
阅读全文
摘要:aakk="adb devices" aakk="adb shell dumpsys window w |findstr \/ |findstr name=" zh=[] lx=[] p = subprocess.Popen(aakk, shell=True, stdout=subprocess.P
阅读全文
摘要:import datetime,time def jsyx(aa1,aa2): jssj=datetime.datetime.strptime(str(datetime.date.today()+datetime.timedelta(days=1))+" 05:48:00",'%Y-%m-%d %H
阅读全文
摘要:#利用ADB DEVICES结果判断指定手机是否正常连接,如果为offline,则adb disconnect sjh;adb connect sjh#如果没有,则执行adb connect sjhdef jianchaad(sjh): aakk="adb devices" zh=[] lx=[]
阅读全文
摘要:自动化测试需要获得当前的activity,来判断处于的页面是否正确; hierarchy view经常连不上真机,无法获得activity,所以直接用 adb命令来查看当前运行的 activity就可以; 方法一: 1、cmd命令中输入:adb shell 进入shell命令模式 2、shell中输
阅读全文
摘要:VS2013 产品密钥 – 所有版本 Visual Studio Ultimate 2013 KEY(密钥):BWG7X-J98B3-W34RT-33B3R-JVYW9 Visual Studio Premium 2013 KEY(密钥):FBJVC-3CMTX-D8DVP-RTQCT-92494
阅读全文
摘要:import time, threading, copy import win32api, win32con import win32gui import win32gui def zhaojb(aa): mu=0 jh=[] hwnd_title = dict() def get_all_hwnd
阅读全文
摘要:点击“USB线”一栏中的“刷新设备列表”按钮,随后设备序列号会显示出来; ·点击“获取设备IP”,随后在“无线”一栏中会显示设备的IP地址; ·点击“启动adbd”,这时候可以拔下USB线了; ·点击“无线”一栏中的“无线连接”; ·再次点击“USB线”一栏中的“刷新设备列表”按钮,在“设备序列号”
阅读全文