随笔分类 - Python-Basic
摘要:1、环境 python3 OSX 12.5 vscode 2、安装ffmpeg brew install ffmpeg 3、安装cv2 pip install opencv-python # or pip --default-timeout=100 install opencv-python -i
阅读全文
摘要:参考链接: http://events.jianshu.io/p/2405999c7c88
阅读全文
摘要:1、代码 # -*- coding:utf8 -*- import cv2 as cv cap = cv.VideoCapture(0) while (True): hx, frame = cap.read() if hx is False: print('read video error') ex
阅读全文
摘要:1、使用os.popen 2、使用os.system 3、使用subprocess.Popen 参考链接: https://blog.csdn.net/weixin_43276033/article/details/125481262 https://blog.csdn.net/sirobot/ar
阅读全文
摘要:1、使用国内的镜像地址 https://registry.npmmirror.com/binary.html?path=chromedriver/ 2、通过simulation模拟用户点击来下载(只贴出部分方法) #!/usr/bin/env python # -*- coding:utf-8 -*
阅读全文
摘要:1、官网 https://pypi.org/project/requests-html/ 2、github https://github.com/kennethreitz/requests-html 3、安装 pip install requests-html 4、使用HTMLSession hea
阅读全文
摘要:1、官网 https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/ 2、安装 pip install BeautifulSoup4 pip install lxml pip install requests 3、解析脚本 import requests f
阅读全文
摘要:1、pip install BeautifulSoup报错 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting BeautifulSoup Using cached https://pypi.tuna.tsi
阅读全文
摘要:1、官网 https://airtest.netease.com/ 2、项目地址 https://github.com/AirtestProject 3、官方文档 欢迎使用 - Airtest Project Docs 4、安装AirtestIDE 解压运行即可 5、设备唤醒 https://jue
阅读全文
摘要:1、官网 https://httprunner.com/https://httprunner.com/docs/ 2、github https://github.com/httprunner/httprunner https://github.com/httprunner/QuickRunner 3
阅读全文
摘要:1、阿里源 https://developer.aliyun.com/mirror/pypi 2、华为源 https://mirrors.huaweicloud.com/home 3、命令行配置 升级pip pip install -i https://pypi.tuna.tsinghua.edu.
阅读全文
摘要:参考链接: https://blog.csdn.net/qq_37107304/article/details/103731209
阅读全文
摘要:空了再写 参考链接: https://blog.csdn.net/zyndev/article/details/113888620
阅读全文
摘要:1、pymongo官网 https://pypi.org/project/pymongo/ https://api.mongodb.com/ 2、github https://github.com/mongodb/mongo-python-driver 3、文档 https://www.osgeo.
阅读全文
摘要:1、下载 https://www.dll-files.com/geos_c.dll.html 2、按照提示放到对应目录和注册即可 C:\Windows\System32
阅读全文
摘要:1、问题现场 自动化测试中,封装接口,用到requests, 封装目录为http, 用于存放相关api 别人下载工程下来之后,运行报错 ModuleNotFoundError: No module named 'http.client' 2、处理方法 经过各种排查,发现确实是目录命名导致 参考链接:
阅读全文
摘要:1、官网 https://nuitka.net/ 2、github https://github.com/Nuitka/Nuitka 3、安装mingw64 https://winlibs.com/ 4、创建python项目 以一个tk小例子 from tkinter import * root =
阅读全文
摘要:1、使用ffmpeg工具直接下载 官网下载 https://ffmpeg.org/download.html 安装就是直接安装即可 ffmpeg -i [http://xxxxxxx/play.ts] -c copy test.mp4 2、使用python库之ffmpy3 安装 pip instal
阅读全文
摘要:1、官网 https://docs.anaconda.com/anaconda/packages/oldpkglists/
阅读全文
摘要:1、现象 2、原因 因为只有python3 3、处理 MacBook-Pro ~ % echo "alias python=/usr/bin/python3" >> ~/.zshrc MacBook-Pro ~ % source ~/.zshrc MacBook-Pro ~ % echo "alia
阅读全文