
import os
test_dir = ".."
total_lines = 0
for _root, _dirs, _files in os.walk(test_dir):
    for _file in _files:
        file_lines = sum(1 for line in open(os.path.join(_root, _file)))
        total_lines += file_lines

print("total lines: %d" % total_lines)

Add a line count script
Add a line count script

Signed-off-by: xcgspring <8f4f8d15922e4269158d45cde01dc3497961f40d@126.com>
