我linux下默认底色是黑色,字体是绿色,但是注释默认是蓝色,,很不爽...所以要更改注释颜色......以下文章来自转载. from: http://blog.csdn.net/gz109/article/details/18733365 在linux下面默认的vim的注释颜色非常刺眼,看不清楚,找了半天,网上有一个解决办法. 找到vim的配置文件, /etc/vimrc 用vim打开它 vim /etc/vimrc 然后按大写 G 到最后一行,插入 hi comment cter
去除指定标签 from bs4 import BeautifulSoup #去除属性ul [s.extract() for s in soup("ul")] # 去除属性svg [s.extract() for s in soup("svg")] # 去除属性script [s.extract() for s in soup("script")] 去除注释 from bs4 import BeautifulSoup, Comment #去除注释
参考: 1.http://www.vim.org/scripts/script.php?script_id=1218 2.http://www.dutor.net/index.php/2010/05/vim-the-nerd-commenter/ 参考1: The following key mappings are provided by default (there is also a menuprovided that contains menu items corresponding t
在js中,肯定会遇到js代码里面有html接口的时候,骚年们都有哪些写法? 刚学JS的写法: <script> var strHtml="<div id=\"test\" style=\"border:1xp solid #ccc\">这里显示三个斜杠\\\\\\</div>"; document.write(strHtml); </script> 高级一点 <script> var s