![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
池木
Never too late now.
展开
-
linux中find命令统计数量和删除.svn
统计数量 find * -name *.txt | wc –l 删除.svn find . –name '.svn' -type d | xargs rm -rf原创 2021-12-07 11:21:15 · 542 阅读 · 0 评论 -
linux环境设置: tab设为4空格
$vim ~/.vimrc set autoindent set smartindent set tabstop=4 set shiftwidth=4 set expandtab set softtabstop=4 set list set listchars=tab:>-,trail:-原创 2021-11-17 13:53:02 · 1073 阅读 · 0 评论 -
ruby读取和输出bin图
读取bin图的宽高和像素值,将像素值放入img数组 fpIn = File.open(ARGV[0],"rb") width,height = fpIn.read(4).unpack("S2") img = Array.new(height){Array.new(width,0)} for y in 0..height-1 for x in 0..width-1 img[y][x] = fpIn.read(2).unpack("S1")[0] end end fpIn.clo原创 2021-11-02 15:43:35 · 160 阅读 · 0 评论