摘要: 一、文件内容差异对比方法:使用difflib自带模块,无需安装 输出结果符号含义 升级版:输出为html格式 vim diff.py #!/usr/bin/env pythonimport difflibtest1 = """ my name is Guo Hdong"""test1_lines = 阅读全文
posted @ 2019-06-27 14:24 什么都不会的小郭 阅读(318) 评论(0) 推荐(0)
摘要: #安装IPy模块#pip install IPy#from IPy import IPip_s = input('please input an IP or net-range:')#192.168.1.100ips = IP(ip_s)if len(ips) > 1: print('net: %s' %ips.net()) #输出网络地址 print('netmask: %s' %... 阅读全文
posted @ 2019-06-27 10:01 什么都不会的小郭 阅读(748) 评论(0) 推荐(0)