终端输入下列命令(先cd /路径) find . -name "*.m" |xargs grep -v "^$"|wc -l find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs grep -v "^$"|wc -l