Count the number of times each Git version Library submitted and the number of lines added or deleted by code. Count the number of times submitted by each Git version Library and the number of lines added or deleted by code. Script 1. simple
How to count the number of lines of code and the number of lines of codeHow to count the number of lines of code
Linux provides many practical tools, even on Android, which are included in the transplanted busybox.
According to the KISS concept,
#coding =utf-8 "" "There is a directory, which is the program you wrote yourself, to count how many lines of code you have written.
Include blank lines and comments, but be listed separately. "" "Import sys,os,re def each (path): all=[] for
For example, to count the workload of a Java programmer writing code in one day (for example, the number of lines of valid code, the number of blank lines, and the number of lines of comments), this tool may serve as a reference.
Idea: because the
To participate in the glorious road test development class has been more than, Wu always in class also always ask "our class so many times, we practice how many lines of code?" ”。 Here is a face with a crazy look. How do you count it? The number
How to count the number of files in a directory and the commands for the total number of lines under Linux
The total number of files that know the specified suffix name command:
Find. -name "*.cpp" | Wc-l find
.-maxdepth 1-name "*.sh" |wc-lKnow
In the process of working or learning code, we often want to know how many lines of code we have written, and today we write a script in the project environment to count the number of project code.Function:1. Total number of statistics code rows2.
Write an Android project in Eclipse, want to count how many lines of code are written in the project (approximate number, because there are still a lot of blank lines in the code), how to count? How many lines of code files to write down first, and
Syntax: WC [options] File ...
Description: This command counts the number of bytes, words, and lines in a given file. If no file name is given, read from standard input. The WC gives also the president count of all specified documents at the same
/**
* @author Xiaoxiao
2011-1-12
* @link http://xiaoyaoxia.cnblogs.com/
* @license
* Number of file lines and total files in the statistics directory • • Remove annotations
*/
$obj = new Caculatefiles ();
If set to False, this does not
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.