sed替换的基本语法为:----s后面跟的是分隔符,原字符串可使用.*这种正则表达式进行整行替换 代码如下: sed 's/原字符串/替换字符串/' 单引号里面,s表示替换,三根斜线中间是替换的样式,特殊字符需要使用反斜线"\"进行转义,但是单引号"'"是没有办法用反斜线"\"转义的,这时候只要把命令中的单引号改为双引号就行了,例如: 代码如下: sed "s/原字符串包含'/替换字符串包含'/" //要处理的字符包含单引号
传送门 http://flask.pocoo.org/docs/1.0/appcontext/#storing-data http://flask.pocoo.org/docs/1.0/appcontext http://flask.pocoo.org/docs/1.0/appcontext/#storing-data 概念 It is a simple namespace object that has the same lifetime as an application context.