相关文章
Python 使用PIL numpy 实现拼接图片的示例
python纵向合并任意多个图片,files是要拼接的文件list # -*- coding:utf-8 -*- def mergeReport(files): from PIL...
Python中shapefile转换geojson的示例
shapefile转换geojson import shapefile import codecs from json import dumps # read the shapefi...
Python 自动安装 Rising 杀毒软件
不能使用时,或重新安装系统时,方便我们重新安装最新的版本. 但是每次安装都要点击好几次 Next 按钮,同时还要提供序列号,ID 等信息,我很讨厌这种重复工作,索性写一个小的脚本,让他自...
python通过tcp发送xml报文的方法
如下所示: # -*- coding: utf-8 -*- import socket # 使用tcp发送请求报文 def tcpsend(ip, port, xmlbw): ad...
Python中使用遍历在列表中添加字典遇到的坑
""" 已知列表li = [{"key": 5}, {"key": 9}, {"key": -1}, {"key": 4}] , 定义一个函数,将该列表按照其元素的value 值进行...