2013年11月15日
摘要: >/tmp/check.txtfor file in `ls *.py`do awk -F "(" '{ if ($0 ~ /^def/) { print $0 }}' $file >> /tmp/check.txtdonepython <<!f = file("/tmp/check.txt", "r")lines = f.readlines()unique=set(lines)if len(lines) != len(unique): for n in unique: lines.rem 阅读全文
posted @ 2013-11-15 17:52 houxiurong.com 阅读(311) 评论(0) 推荐(0) 编辑
< a href="http://houxiurong.com">houxiurong.com