会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
★技术改变世界★
2014年5月15日
sed 标签用法
摘要: sed '{/A/b there;s/A/AA/;:there;s/B/BB/}' 1
阅读全文
posted @ 2014-05-15 13:02 终极记忆
阅读(232)
评论(0)
推荐(0)
vim 设置编码
摘要: set enc=utf-8centos修改 /etc/vimrcubuntu修改:/etc/vim/vimrc
阅读全文
posted @ 2014-05-15 09:32 终极记忆
阅读(130)
评论(0)
推荐(0)
2014年5月14日
python open file
摘要: #!/usr/bin/env pythonfilename = raw_input('Enter file nameL: ')fobj = open(filename,'r')for i in fobj: print i fobj.close()
阅读全文
posted @ 2014-05-14 15:38 终极记忆
阅读(155)
评论(0)
推荐(0)
python try 函数
摘要: #!/usr/bin/env pythonfilename = ''while 1: filename = raw_input("Please input filename: ") if filename == 'q': break try: f = open(filename,"...
阅读全文
posted @ 2014-05-14 14:34 终极记忆
阅读(1617)
评论(0)
推荐(0)
python string
摘要: #!/usr/bin/env pythonimport timeimport stringfrom string import lowercasefrom time import sleepa = 1for k in lowercase: print a,k sleep(1) a=a+1
阅读全文
posted @ 2014-05-14 13:46 终极记忆
阅读(115)
评论(0)
推荐(0)
2014年5月12日
dnsmasq 安装
摘要: yum install dnsmasq -ycp/etc/resolv.conf/etc/resolv.dnsmasq.confvi/etc/dnsmasq.confresolv-file=/etc/resolv.dnsmasq.confconf-dir=/etc/dnsmasq.dvi/etc/d...
阅读全文
posted @ 2014-05-12 16:31 终极记忆
阅读(223)
评论(0)
推荐(0)
导航
管理