码迷,mamicode.com
首页 >  
搜索关键字:strip    ( 2365个结果
20150211--Smarty2-01
模板引擎——Smarty下 目录 模板引擎——Smarty下 1 一、内建函数 2 1、if…elseif…else…if 2 2、ldelim、rdelim 2 3、literal 3 4、php 3 5、section 4 6、strip 6 二、自定义函数(plugins) 7 1、count... ...
分类:其他好文   时间:2016-05-06 02:07:29    阅读次数:182
windows系统用python查看在线主机脚本
#!/usr/bin/envpython#-*-coding:utf-8-*-importos,rewithopen("ip.txt","w",encoding="utf-8")asf:foriinrange(20,30):ip=os.popen("ping-n1192.168.72.%s"%i).read().strip()f.write(ip)withopen("ip.txt",encoding="utf-8")asf_r,open("ip2.txt","w",encoding="utf-8")asf_w..
分类:编程语言   时间:2016-04-28 15:32:56    阅读次数:457
windows系统用python查看在线主机脚本
os (,,=)f: i(,): a=os.popen(%i).read().strip() a: f.write(a) (,=)r_f,(,,=)w_f: ir_f: i: w_f.write(i)
分类:编程语言   时间:2016-04-28 12:38:34    阅读次数:187
python学习笔记(1-6)
《python核心编程》学习笔记if__name__==‘__main__‘:一、二、三获得键盘输入1、raw_input(‘‘)2、sys.stdin.readline()strip()取出2边的空格。3<5>4等同于(3<5)and(4<5),这个可是当初C语言入门的时候经常叮嘱的经典错误呀!想不到在这里被实现了,再也不是错误了,..
分类:编程语言   时间:2016-04-23 07:48:22    阅读次数:307
php防sql注入函数
function clean($str){ $str=trim($str); $str=strip_tags($str); $str=stripslashes($str); $str=addslashes($str); $str=rawurldecode($str); $str=quotemeta( ...
分类:数据库   时间:2016-04-20 20:08:35    阅读次数:219
Python day1
paython 1: Type : print(type(name)) # view the data type Integer String Tuple List Dict String : .strip() -->.rstrip() -->.lstrip() # remove the space ...
分类:编程语言   时间:2016-04-14 17:43:05    阅读次数:174
PHP的htmlspecialchars、strip_tags、addslashes解释
第一个函数:strip_tags,去掉 HTML 及 PHP 的标记 注意:本函数可去掉字串中包含的任何 HTML 及 PHP 的标记字串。若是字串的 HTML 及 PHP 标签原来就有错,例如少了大于的符号,则也会传回错误。而本函数和 fgetss() 有着相同的功能。fgetss是从文件中读取文 ...
分类:Web程序   时间:2016-04-11 10:14:30    阅读次数:224
mac安装brew和nginx
1、安装brew 运行如下代码: 安装命令如下:curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1 当brew安装成功后,就可以随意安装自己想要的软件了,例如w ...
分类:系统相关   时间:2016-04-11 01:37:05    阅读次数:259
07python之字符串的常用方法
字符串作为python中常用的数据类型,掌握字符串的常用方法十分必要。 常用知识点: 1.字符串的3种格式化方法 2.字符串的strip()方法 3.字符串的join()方法 4.字符串可以切片 1.字符串的格式化有三种方式。 1)使用+拼接模式 2)使用占为符方式 %s 字符串占为符,%d数字占为 ...
分类:编程语言   时间:2016-04-10 00:51:18    阅读次数:189
XSS(跨站攻击)
XSS:跨站攻击防御的方法(PHP) 1.转义/编码 htmlspecialchars() 2.过滤 strip_tags() 3.CSP(Content Security Policy) 4.第三方库 (1)HTMLPurifier (2)htmLawed (3)Zend_Filter_Input ...
分类:其他好文   时间:2016-04-07 17:05:35    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!