python实现代码行数统计示例分享
复制代码 代码如下:#!/usr/bin/python ”’ File : count.py Author : Mike E-Mail : Mike_Zhang@live.com”’import sys,os extens = [“.c”,”.cpp”,”.hpp”,”.h”]linesCount = 0filesCount = 0 def funCount(dirName): global extens,linesCount,filesCount for root,dirs,fileNames in os.walk(