上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: map: 最大长度输出; zip: 最短输出; third: 有序排列; 阅读全文
posted @ 2019-11-08 11:32 vivi~ 阅读(98) 评论(0) 推荐(0)
摘要: 查ip 时,使用 ip==10.224.37.18 发现无效 使用 ip.dst, 查到了 Actually for some reason wireshark uses two different kind of filter syntax: 1. one on display filter; o 阅读全文
posted @ 2019-10-22 18:35 vivi~ 阅读(329) 评论(0) 推荐(0)
摘要: log.txt exit remotessh done ``` 阅读全文
posted @ 2019-10-09 10:43 vivi~ 阅读(347) 评论(0) 推荐(0)
摘要: 多次提醒我,为变量取个合适的名字, so cute person: 每个参数一行好么 菇凉? 这样写for ok? 不要在代码里用 好么? 用 constant 判断 是否为 unicode 判断是否为ascii, 返回true 为english, 返回false 为其他字符 ss = all(or 阅读全文
posted @ 2019-08-07 10:54 vivi~ 阅读(181) 评论(0) 推荐(0)
摘要: linux , is “/” , while windows is “\” 阅读全文
posted @ 2019-03-07 15:05 vivi~ 阅读(309) 评论(0) 推荐(0)
摘要: python中unicode, hex, bin之间的转换 背景 在smb中有个feature , 需要改动文件权限dacl,然后确认是否有收到notify。一直得不到这个dacl的formal是什么样子的,于是pdb中打印出原始dacl,是个类似于 的字符串str,然鹅无法用str的方法来操作它。 阅读全文
posted @ 2019-03-03 11:32 vivi~ 阅读(1493) 评论(0) 推荐(0)
摘要: version2 check git status git status git log oneline git reflog git remote vv git branch reset special version git reset hard {version_number} push to 阅读全文
posted @ 2019-01-17 13:59 vivi~ 阅读(364) 评论(1) 推荐(0)
摘要: 😓 常常因为排错耽误进度,其实requests也有问题,不过重点是read_csv的问题 解决办法:Just browse to Applications/Python 3.6 and double-click Install Certificates.command 感谢:https://sta 阅读全文
posted @ 2018-11-25 13:15 vivi~ 阅读(645) 评论(0) 推荐(0)
摘要: add dict的排列: 1. 用 lambda 2. 用operator.itemgetter() >>> xs = {'a': 4, 'b':3, 'c':2, 'd':1} >>> sorted(xs.items(),key = lambda x:x[1]) [('d', 1), ('c', 阅读全文
posted @ 2018-11-01 16:45 vivi~ 阅读(1054) 评论(0) 推荐(0)
摘要: 发现15年写过的一小段,先mark一下,后续玩儿起来 import docker c = docker.Client(base_url='unix://var/run/docker.sock',version='1.15',timeout=10) print(c.info()) print(c.images()) 阅读全文
posted @ 2018-10-28 09:35 vivi~ 阅读(1115) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页