- 博客(3)
- 收藏
- 关注
原创 grep
grep的用法-wgrep 默认是匹配字符, -w 选项默认匹配一个单词例如我想匹配 “like”, 不加 -w 就会匹配到 “liker”, 加 -w 就不会匹配到-v表示不匹配的字符,grep -v ‘ok’,表示匹配没有ok的内容-e使用grep -e 选项,只能传递一个参数。在单条命令中使用多个 -e 选项,得到多个pattern,以此实现OR操作。例如:grep -e pattern1 -e pattern2 filename$ grep -e Tech -e Sales emp
2020-09-25 14:07:07
68
原创 安装profiler遇到的问题
安装profiler遇到的问题line_profiler使用装饰器(@profile)标记需要调试的函数.用kernprof.py脚本运行代码,被选函数每一行花费的cpu时间以及其他信息就会被记录下来。安装首先是在linux上安装pip3 install Cpythonpip3 install Cython git+https://github.com/rkern/line_profiler.git可能会遇到的报错信息ERROR: Command errored out with exit
2020-09-17 15:13:17
867
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人