上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 构造方法: Thread(group=None, target=None, name=None, args=(), kwargs={}) group: 线程组,目前还没有实现,库引用中提示必须是None; target: 要执行的方法; name: 线程名; args/kwargs: 要传入方法的参 阅读全文
posted @ 2018-08-09 15:10 LLSix 阅读(2254) 评论(0) 推荐(0) 编辑
摘要: iptables 一共有 3 张表:mangle,nat,filter mangle 表主要处理 ttl,tos,mark 等信息(进) filter 顾名思义就是过滤器,用作防火墙(出) nat 主要处理 ip、端口转换的信息 chain:chain 就是要执行的防火墙操作的列表; Chain I 阅读全文
posted @ 2018-07-31 11:04 LLSix 阅读(323) 评论(0) 推荐(0) 编辑
摘要: """This provides a lineno() function to make it easy to grab the line number that we're on. """ import inspect def lineno(): """Returns the current line number in our program.""" return in... 阅读全文
posted @ 2018-07-28 18:46 LLSix 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1 # coding:utf-8 2 import os 3 4 cmd = {'arp': 'arp -a | find "', 5 'route': 'route PRINT ' 6 } 7 8 9 def win_mac_get(): 10 import socket 11 import re 12 s = soc... 阅读全文
posted @ 2018-07-27 17:28 LLSix 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.思维缜密的编程逻辑 2.满足明确的目的需求 3.运用现成的轮子加以改造 4.学会装饰自己的程序 5.化繁为简 6.多用配置文件作为入口 7.注意扩展兼容 阅读全文
posted @ 2018-07-12 10:32 LLSix 阅读(120) 评论(0) 推荐(0) 编辑
摘要: -t : 指定表 {fillter|nat|mangle|raw} -v : 显示详细信息 -v -vvv -vvvv ..可以显示更详细的信息 -nvL 这其实是三个参数,等效于 -n -v -L -v 详细信息列表 -L 列表 通过grep进行筛选关键信息 阅读全文
posted @ 2018-07-04 18:51 LLSix 阅读(301) 评论(0) 推荐(0) 编辑
摘要: if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) Form = QtGui.QWidget() ui = Ui_Form() ui.setupUi(Form) Form.show() sys.exit(app.exec_()) 阅读全文
posted @ 2018-05-27 02:33 LLSix 阅读(156) 评论(0) 推荐(0) 编辑
摘要: match 匹配string 开头,成功返回Match object, 失败返回None,只匹配一个。 search 在string中进行搜索,成功返回Match object, 失败返回None, 只匹配一个。 findall 在string中查找所有 匹配成功的组, 即用括号括起来的部分。返回l 阅读全文
posted @ 2018-04-24 15:54 LLSix 阅读(231) 评论(0) 推荐(0) 编辑
摘要: sorted(iterable, cmp=None, key=None, reverse=False) sort(cmp=None, key=None, reverse=False) 阅读全文
posted @ 2018-04-24 15:52 LLSix 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 返回值为dict类型 阅读全文
posted @ 2018-04-20 13:33 LLSix 阅读(350) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页