会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LLSIX
每天让自己进一小步
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
10
下一页
2018年8月28日
adb命令
摘要: 1.关闭wifi # adb shell svc wifi disable 2.打开wifi # adb shell svc wifi enable 3.查看当前activity linux环境 # adb shell dumpsys activity activities | grep mResu
阅读全文
posted @ 2018-08-28 17:11 LLSix
阅读(455)
评论(0)
推荐(0)
2018年8月9日
python Thread 函数
摘要: 构造方法: Thread(group=None, target=None, name=None, args=(), kwargs={}) group: 线程组,目前还没有实现,库引用中提示必须是None; target: 要执行的方法; name: 线程名; args/kwargs: 要传入方法的参
阅读全文
posted @ 2018-08-09 15:10 LLSix
阅读(2272)
评论(0)
推荐(0)
2018年7月31日
iptables 规则学习
摘要: iptables 一共有 3 张表:mangle,nat,filter mangle 表主要处理 ttl,tos,mark 等信息(进) filter 顾名思义就是过滤器,用作防火墙(出) nat 主要处理 ip、端口转换的信息 chain:chain 就是要执行的防火墙操作的列表; Chain I
阅读全文
posted @ 2018-07-31 11:04 LLSix
阅读(350)
评论(0)
推荐(0)
2018年7月28日
返回程序运行中当前行
摘要: """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
阅读(134)
评论(0)
推荐(0)
2018年7月27日
通过ip找mac
摘要: 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
阅读(193)
评论(0)
推荐(0)
2018年7月12日
python开发总结
摘要: 1.思维缜密的编程逻辑 2.满足明确的目的需求 3.运用现成的轮子加以改造 4.学会装饰自己的程序 5.化繁为简 6.多用配置文件作为入口 7.注意扩展兼容
阅读全文
posted @ 2018-07-12 10:32 LLSix
阅读(131)
评论(0)
推荐(0)
2018年7月4日
iptables 通用语句
摘要: -t : 指定表 {fillter|nat|mangle|raw} -v : 显示详细信息 -v -vvv -vvvv ..可以显示更详细的信息 -nvL 这其实是三个参数,等效于 -n -v -L -v 详细信息列表 -L 列表 通过grep进行筛选关键信息
阅读全文
posted @ 2018-07-04 18:51 LLSix
阅读(306)
评论(0)
推荐(0)
2018年5月27日
运行pyqt4生成py文件增加代码
摘要: 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
阅读(162)
评论(0)
推荐(0)
2018年4月24日
re正则match、search、findall、finditer函数方法使用
摘要: match 匹配string 开头,成功返回Match object, 失败返回None,只匹配一个。 search 在string中进行搜索,成功返回Match object, 失败返回None, 只匹配一个。 findall 在string中查找所有 匹配成功的组, 即用括号括起来的部分。返回l
阅读全文
posted @ 2018-04-24 15:54 LLSix
阅读(239)
评论(0)
推荐(0)
python list 字符串排序
摘要: sorted(iterable, cmp=None, key=None, reverse=False) sort(cmp=None, key=None, reverse=False)
阅读全文
posted @ 2018-04-24 15:52 LLSix
阅读(646)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
10
下一页
公告