摘要:
#!/usr/bin/python#coding:utf-8import rex=open('access1.log')abc={}for i in x: m=re.search('firefox',i) if m: key=m.group() abc[key]=abc.get(key,0)+1pr 阅读全文
摘要:
#!/usr/bin/pythonimport paramikohost='192.168.4.101'ssh = paramiko.SSHClient()ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())ssh.connect(hos 阅读全文
摘要:
#!/usr/bin/python #coding:utf-8 import subprocess //调用shell命令的一个模块 import threading //导入线程模块 def myping(ip): s=subprocess.call('ping -c2 -i0.1 -W1 %s 阅读全文