dir .\ -Recurse *.py | Get-Content | Measure-Object 转载于:https://www.cnblogs.com/lurenjiashuo/p/windows-powershell-get-source-code-line-count.html