摘要:
使用in运算符 最简单的方法是通过python的 in 运算符。in取两个“参数”,一个在左边,一个在右边,如果左参数包含在右参数中,则返回true。 >>> str = "Messi is the best soccer player" >>> result = "soccer" in str > 阅读全文
摘要:
编辑当前用户vim配置文件 #vim ~/.vimrc 或者定义全局也行 #vim /etc/vimrc 在最下方添加如下代码: function HappyShell() call setline(1, "#!/bin/bash") normal G normal o endf autocmd b 阅读全文