摘要: 1. 统计项目代码行数 find . "(" -name "*.cc" -or -name "*.cpp" -or -name "*.h" ")" -print | xargs wc -l 2. find & copy find <target-dir> -type f -name "<file-p 阅读全文
posted @ 2020-05-27 23:55 不写诗的诗人小安 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1. 查看硬件信息 cat /proc/cpuinfo # 查看CPU信息 free -h # 查看内存信息 cat /proc/<pid>/status # 查看指定进程的内存信息 df -h # 查看硬盘信息 2. 查看软件信息 cat /etc/redhat-release # 查看OS版本 阅读全文
posted @ 2020-05-27 23:47 不写诗的诗人小安 阅读(135) 评论(0) 推荐(0) 编辑
摘要: https://en.wikipedia.org/wiki/K-means_clustering 阅读全文
posted @ 2020-05-27 23:40 不写诗的诗人小安 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 创建虚拟环境的工具有anaconda和virtualenv,以virtualenv为例,介绍虚拟环境创建方法,如下是创建的命令: # 安装 sudo yum install python-pip python-dev python-virtualenv # 创建虚拟环境 virtualenv -p 阅读全文
posted @ 2020-05-27 23:39 不写诗的诗人小安 阅读(136) 评论(0) 推荐(0) 编辑