python

pyqt6 安装

在 Windows 系统上安装 PyQt6 和 Designer 非常简单。请按照以下步骤进行操作: 首先,确保你已经安装了 Python。建议使用 Python 3.9 或更低版本,因为...

2023新年第一天,python+scapy监听 分析封包

两种方式获得数据,1.实时抓包,2.读取 pcap文件 #scapy抓包使用 sniff() 函数 def sniff(count=0, store=1, offline=None, prn=None,filter=None, L2sock...

Python 并口(LPT)打印

printer = open('LPT1', 'wb') bs = bytearray(u'凭证\n姓名\n年龄\n', encoding='gbk') printer.write(bs) printer.flush() printer.close() 打包某个文...

安装MockingBird 部分错误的修复法

pip install 报错 fatal error C1083: 无法打开包括文件: “math.h” 没有安装C++运行环境,我装了 没有安装cpython,我装了 使用Visaul Studio Installer工...

Mac OS 基于Python3.8安装OpenCV4

第一步安装Python(Linux和maxOS一般自带,win得自己装) 第二步:安装OpenCV ----命令 1、pip3 install opencv_python -i https://pypi.mirrors.ustc.edu.cn...

python图片分割合并

import os from PIL import Image def cut_image(image,ww,hh): width, height = image.size item_width = int(width / ww) item_height = int(...

py编译成exe

1.安装pyinstaller pip install pyinstaller 2.进入py文件目录执行编译操作 pyinstaller -F -w xxx.py 3.进入py文件目录,编译后的exe在当前目录...

Python 变量与运算符

运算符 运算符这里就把画的一个思维导图放上,只要知道有几种运算符种类和每个种类运算符可以干嘛就行了,具体到各个符号用的时候看看思维导图 就好~...

10进制acsii 输出汉字

有些繁琐,自用 a=' #39318#39029' b='' li=a.split('#') del li[0] int_list = [int(i) for i in li] hex_list = [hex(i) for i in int_list] hex_int=',...

用10行代码进行对象检测

环境Install Python on your computer system Install ImageAI and its dependencies 依赖2.tensorflow==1.14.0 i. TensorFlow pip3 install ten...
1 2 3 4