代码统计工具cloc 一、安装常用操作系统安装如下:1)macbrew install cloc2)ubuntu、debian、deepin、mint等sudo apt install cloc3)redhat、centOSsudo yun install cloc二、基本用法1)统计文件夹代码行数cloc 目录路径2)排除某些文件夹:cloc ./ --exclude-dir=vendor,Test3)其他操作可以查看help说明