在Django项目中计算代码行 [英] Count lines of code in a Django Project

查看:196
本文介绍了在Django项目中计算代码行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有简单的方法来计算您为django项目编写的代码行?



编辑:shell的东西很酷,但是在Windows上怎么样?

解决方案>

是的:

  shell] $ find / my / source -name* .py-type f -exec猫{} + | wc -l 

Job是一个很好的'un。


Is there an easy way to count the lines of code you have written for your django project?

Edit: The shell stuff is cool, but how about on Windows?

解决方案

Yep:

shell]$ find /my/source -name "*.py" -type f -exec cat {} + | wc -l

Job's a good 'un.

这篇关于在Django项目中计算代码行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆