Go through a directory (and sub-directories) and count the number of lines in each file.
Example: python count_lines.py --endswith go --path ../../hyperledger/fabric/gossip/
python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/
==============================================
- 1: python3 print 能够打印中文
- 2:构造函数只能一个。
python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/api/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/comm/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/common/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/discovery/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/election/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/filter/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/gossip/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/identity/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/integration/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/mocks/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/privdata/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/service/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/state/ python count_lines.py --showdetail false --endswith go --path ../../hyperledger/fabric/gossip/util/