摘要: 一、模块xlrd-读取excel 1.1 打开excel 1.2 打开sheet 1.3 读取 - 行/列数 1.4 读取 - 一行/列数据 1.5 读取 - 单元格数据 二、模块xlwt-生成excel 2.1 创建excel 2.2 添加sheet 2.3 cell写入值 2.4 保存excel 阅读全文
posted @ 2018-09-21 15:00 eudaemonia 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 引用 from IPy import * ip = IP('192.168.0.0/16') print ip.len() #65536 网段的长度 for i in ip: print i #输出所有这个网段的ip地址 ip = IP('192.168.10.20') print ip.iptyp 阅读全文
posted @ 2018-09-21 14:49 eudaemonia 阅读(1182) 评论(0) 推荐(0) 编辑