在线工具

2022-07-13     8

ModuleNotFoundError: No module named 'cv2' 解决方法 pip install opencv-python (如果只用主模块,使用这个命令安装) pip install opencv-contrib-python (如果需要用主模块和contrib模块,使用这个命令安装) Traceback (most recent call last):

2022-07-24     1

from selenium import webdriver import time,os from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.chrome.options import Options #options = Options() #options.add_

2022-08-25     3

AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import) 先卸载opencv,然后安装最新版本就行。 pip uninstall opencv-python pip uni

2022-08-30     10

Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 全: ERROR: Command errored out with exit status 1:

2022-09-02     5

因为我的机器上只有wps,运行后报错。如下: 查了资料将“ word = win32com.client.Dispatch('wps.Application') 修改为 word = win32com.client.DispatchEx('wps.Application') 也不行。然后发现网上的文章说pythoncom接口和wps的版本有关,尝试着修改为 win32com.clien

2022-09-25     4

ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'c:\\python\\Lib\\site-packages\\cv2\\cv2.pyd' Consider using the `--user` option or check the permissions. 原因是由于实验室服务器管理时都是用

2022-10-10     1

使用 driver.find_element_by_xpath('//span[text()="自动检测语言"]').click() 出现 File "C:\Users\Administrator\Desktop\111.py", line 30 driver.find_element_by_xpath('//span[text()="自动检测语言"]').click() Dep

2022-10-10     1

例如有些页面元素很难获取,但是位置很固定,那么可以直接用坐标来进行操作 例如要对页面上的(x:200, y:100)进行操作,可以用如下代码: from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains dr = webdriver.Chrome() dr.ge

2022-12-04     1

01、直接截取网页全屏 截全屏的时候,我们用到的内置方法为save_screenshot(“demo1.png”): from selenium import webdriver from time import sleep class test: driver = webdriver.Chrome() driver.maximize_window() driver.

2022-12-05     1

方法一: # 检验是否全是中文字符 def is_all_chinese(strs): for _char in strs: if not '\u4e00'

2022-12-05     2

python代码: import re,requests,random files = {"image" : open("2.png", "rb")} data = {"key" : "v2"} r = requests.post("http://kp.lmcjl.com/index/keyword/imgupload.html",data,files=files) print(r.text)

2022-12-05     4

先打开pdf文件,获取pdf文件内容后,利用os.remove()来删除文件,这时候出现错误 [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'output/3.png' 使用代码: img_f = open('output/'+str(kid)+'.png', "rb") files = {"image" : img_f} data = {"key" : "keyw