
python
停止测试
随笔
展开
-
树莓派添加网络打印机
@ 树莓派树莓派添加网络打印机,可供IOS使用在Home Assistant里自动配置老旧的HP打印机 : HP_LaserJet_Professional_M1216nfh树莓派: 4b手机:iphone7需求:HP打印机做网络打印机,树莓派,手机都可以使用准备工作1 准备树莓派的环境,系统烧好可使用2 树莓派网络环境准备配置完成.测试下打印机地址是否可联ping 192.168.11.8正式搭建工作1 安装惠普hp打印机驱动,此安装会同时安装cups服务sudo apt-原创 2020-07-24 17:51:28 · 1039 阅读 · 0 评论 -
用 Python opencv和openpyxl 在 Excel 中画画
用 Python opencv和openpyxl 在 Excel 中画画实现这个需求的基本思路是读取这张图片每一个像素的色彩值,然后给 excel 里的每一个单元格填充上颜色。本文用opencv openpyxl这两个库 ,参考另一篇博文使用了 PIL、 openpyxl这两个库EXCEl的蒙娜丽莎画图效果:一 、 python CV2中shape和resize返回值和参数的区别1、...原创 2019-12-20 17:26:31 · 730 阅读 · 0 评论 -
python3 正则匹配文本段多行多个字段
一个好用的在线正则匹配网站 :https://regex101.com/https://regex101.com/r/qKH9QQ/7# coding=utf8# the above tag defines encoding for this document and is for Python 2.x compatibilityimport reregex = (r"业务类型:(...原创 2019-12-12 16:56:13 · 874 阅读 · 0 评论 -
selenium+unittest+parameterized+BeautifulReport 自动填写问卷调查
selenium+unittest+BeautifulReport 升级到Python 3.7.4 代码修改记录下# -*- coding: utf-8 -*import sys#https://www.jianshu.com/p/3d2c0e092ffb#reload(sys)#sys.setdefaultencoding( "utf-8" )#import HTMLTestRunn...原创 2019-11-28 15:51:11 · 359 阅读 · 0 评论