摘要: 问题假设用户名为:ali如果用户名没有超级用户权限,当输入 sudo + 命令 时, 系统提示:ali is not in the sudoers file. This incident will be reported.解决1. 进入超级用户模式。即输入"su",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。2. 添加文件的写权限。chmod u+w /etc/sudoers3. 编辑/etc/sudoers文件。即输入命令"vim/etc/sudoers",找到这一行:"rootALL=(ALL)ALL"在起下面添加 阅读全文
posted @ 2013-11-13 22:18 jihite 阅读(12208) 评论(0) 推荐(1) 编辑
摘要: 看具体示例import redef expand_abbr(sen, abbr): lenabbr = len(abbr) ma = '' for i in range(0, lenabbr): ma += abbr[i] + "[a-z]+" + ' ' print 'ma:', ma ma = ma.strip(' ') p = re.search(ma, sen) if p: return p.group() else: return ''print expand_abbr("W 阅读全文
posted @ 2013-11-13 18:03 jihite 阅读(1442) 评论(0) 推荐(0) 编辑