上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: 15年16年接触python时候,还不知道这个函数,只知道dict的无序,造成了一些麻烦 今天view 代码,发现了 OrderedDict() 在python2.7中比较吃内存 pop(获取指定key的value,并在字典中删除) 阅读全文
posted @ 2019-12-16 09:28 vivi~ 阅读(374) 评论(0) 推荐(0)
摘要: new_note_001 #!/usr/local/bin/env python3.8 import sys def main(): print(' '.join(sys.argv[1:])) if __name__=='__main__': main() ****chmod +x a.py ** 阅读全文
posted @ 2019-11-10 16:49 vivi~ 阅读(322) 评论(3) 推荐(1)
摘要: 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~ 阅读(331) 评论(0) 推荐(0)
摘要: log.txt exit remotessh done ``` 阅读全文
posted @ 2019-10-09 10:43 vivi~ 阅读(349) 评论(0) 推荐(0)
摘要: 多次提醒我,为变量取个合适的名字, so cute person: 每个参数一行好么 菇凉? 这样写for ok? 不要在代码里用 好么? 用 constant 判断 是否为 unicode 判断是否为ascii, 返回true 为english, 返回false 为其他字符 ss = all(or 阅读全文
posted @ 2019-08-07 10:54 vivi~ 阅读(183) 评论(0) 推荐(0)
摘要: linux , is “/” , while windows is “\” 阅读全文
posted @ 2019-03-07 15:05 vivi~ 阅读(310) 评论(0) 推荐(0)
摘要: python中unicode, hex, bin之间的转换 背景 在smb中有个feature , 需要改动文件权限dacl,然后确认是否有收到notify。一直得不到这个dacl的formal是什么样子的,于是pdb中打印出原始dacl,是个类似于 的字符串str,然鹅无法用str的方法来操作它。 阅读全文
posted @ 2019-03-03 11:32 vivi~ 阅读(1495) 评论(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~ 阅读(365) 评论(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~ 阅读(647) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页