- 博客(3)
- 收藏
- 关注
原创 grep
grep的用法 -w grep 默认是匹配字符, -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
87
原创 安装profiler遇到的问题
安装profiler遇到的问题 line_profiler使用装饰器(@profile)标记需要调试的函数.用kernprof.py脚本运行代码,被选函数每一行花费的cpu时间以及其他信息就会被记录下来。 安装 首先是在linux上安装 pip3 install Cpython pip3 install Cython git+https://github.com/rkern/line_profiler.git 可能会遇到的报错信息 ERROR: Command errored out with exit
2020-09-17 15:13:17
1000
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人