别看了,看不懂的
真的,别看了

给小蕨的生日礼物

def lc(dir,exts=[".rb",".rbw"]) 
  total = 0 
  Find.find(dir) do |f| 
    Finde.prune if f == ".metadata" 
    if exts.include?(File.extname(f)) 
      lines = File.open(f).read.count("\n") 
      puts "#{f} #{lines}" 
      total += lines 
    end 
  end 
  puts "total: #{total}" 
  return total 
end 

大概5000行~高一下半学期到现在

标签集:TAGS:
回复Comments()点击Count()
喜欢就顶一下

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}
我的日历
友情链接
最新评论
搜索日志
       
访问计数

获取 RSS

我的 Blog:
别看了,看不懂的 最新的 20 条日志
[没来得及整理的]
条日志? 20 没来得及整理的?分类最新的
[也是没来得及整理的]
条日志? 20 也是没来得及整理的?分类最新的
[你们看得懂的]
条日志? 20 你们看得懂的?分类最新的
[你们看不懂的]
条日志? 20 你们看不懂的?分类最新的
[有人看得懂有人看不懂]
条日志? 20 有人看得懂有人看不懂?分类最新的
全站 Blog:
全站最新的 20 条日志
Xavier的自述

xavier 姓名:xavier

来自:冰点工作室

种族:非正常人系

年龄:小到某种地步

爱好:小号,书,RpgMaker,做网站,Bandari

QQ: 405639049

Powered by 5DBlog.com