2018年3月12日

摘要: def ipcatch(): cmd = "ipconfig" pingtxt = os.popen(cmd) pingtxt1 = pingtxt.readlines() w = len(pingtxt1) n = 0 pingstr = "" for line in pingtxt1: if "192.168" in l... 阅读全文

posted @ 2018-03-12 11:10 一入iT深似海 阅读(325) 评论(0) 推荐(0) 编辑

摘要: 2018-03-12 #log class Logger(object): def __init__(self,fileN ="Default.log"): self.terminal = sys.stdout self.log = open(fileN,"a") def write(self,message): self.ter... 阅读全文

posted @ 2018-03-12 10:52 一入iT深似海 阅读(11315) 评论(0) 推荐(0) 编辑