摘要: 1、任务:简单测试局域网中的网络是否连接,ip范围:192.168.2.101到192.168.2.200。python 实现代码:import subprocesscmd="cmd.exe"begin=101end=200while begin=0: 9 if name[pos+1:]=="html":10 os.rename(os.path.join(ipath,name),os.path.join(ipath,name[:pos+1]+"txt")) pos=name.find("."),就是找到字符串nam 阅读全文
posted @ 2013-07-13 20:09 楠楠IT 阅读(3772) 评论(0) 推荐(0) 编辑