摘要: #coding:utf-8 __author__ = 'similarface' import argparse import socket import errno from time import time as now DEFAULT_TIMEOUT = 120 DEFAULT_SERVER_HOST = 'localhost' DEFAULT_SERVER_PORT = 80 cla... 阅读全文
posted @ 2016-05-26 14:41 similarface 阅读(202) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 #!/usr/bin/env python import os import argparse import socket import struct import select import time # ICMP_ECHO_REQUEST = 8 # Platform specific #超时时间 DEFAULT_TIMEOUT = 2 #ping到次数 D... 阅读全文
posted @ 2016-05-26 14:16 similarface 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 浏览器访问:http://localhost:8800 --> 会跳转到:http://www.23mofang.com 阅读全文
posted @ 2016-05-26 11:24 similarface 阅读(762) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python #coding:utf-8 __author__ = 'similarface' import time import sys,datetime,re,subprocess #发送邮件 from itertools import islice import commands,optparse,os,xlrd import sys import smtplib ... 阅读全文
posted @ 2016-05-26 10:14 similarface 阅读(266) 评论(0) 推荐(0) 编辑