# print (msg.capitalize())# print (msg.center(10,"*")) 以*分割 一共20字节 居中分割# print (msg.endswith('d'))# print (msg.count('d',0,11)) 统计字符有几个# print ('{1},{ ...
分类:
编程语言 时间:
2016-10-22 07:23:54
阅读次数:
148
前言 在编译xilinx的uboot的时候出现了一个问题,始终报错:“strip: Unable to recognise the format of the input file `gen_eth_addr'” 1 分析 一般对于编译链接命令出现这样的错误,都是因为目标文件和命令的编译环境不一样导 ...
分类:
其他好文 时间:
2016-10-21 07:43:59
阅读次数:
1222
公司要用docker,先测试一下。#Toinstall,runthefollowingcommandsasroot:curl-fsSLOhttps://get.docker.com/builds/Linux/x86_64/docker-1.12.1.tgz&&tar--strip-components=1-xvzfdocker-1.12.1.tgz-C/usr/local/bin#Thenstartdockerindaemonmode:/usr/local/bin/doc..
分类:
数据库 时间:
2016-10-11 00:50:17
阅读次数:
276
给NSString增加Java风格的方法 文章目录 我实在受不了 NSString 冗长的方法调用了,每次写之前都要查文档。特别是那个去掉前后多余的空格的方法,长得离谱。与之对应的别的语言,拿 java 来说,对应的方法名叫 trim。拿 python 来说,对应的方法名叫 strip。但是 Obj ...
分类:
编程语言 时间:
2016-10-06 22:16:23
阅读次数:
211
如果精灵图片不是单一图片(拥有子图)可以称它为长条图,当gamemakerstudio加载这类精灵图片时,我们给图片名字命名为*_strip列数.*,这样当加载图片时gamemakerstudio会自动帮我们逐帧剪切图片,但如果图片不只一行子图时,剪切的效果将不是我们想要的,这时我们使用精灵编辑器中 ...
分类:
其他好文 时间:
2016-09-30 07:40:42
阅读次数:
121
原文地址:http://www.manongjc.com/article/1103.html 先来看一下htmlspecialchars函数和strip_tags函数的使用实例: 浏览器输出如下结果: 查看页面源码,结果如下: 从结果可以看出htmlspecialchars() 和strip_tag ...
分类:
Web程序 时间:
2016-09-29 21:10:57
阅读次数:
184
deflogin(username,password):
‘‘‘
用于用户登录
:paramusername:用户输入用户名
:parampassword:用户输入密码
:return:True表示登陆成功
‘‘‘
f=open("db","r")
forlineinf:#一行一行检测
line_list=line.strip().split("|")
ifline_list[0]==usernameandline_list[1]==passwor..
分类:
编程语言 时间:
2016-09-23 21:53:18
阅读次数:
179
bugscan上的漏洞,自己复现了一下 注入在根目录下的flow.php 看到这两句 $order_id = strip_tags($_POST['order_id']); $order_goods = $db->getAll("SELECT goods_id, goods_number, good ...
分类:
数据库 时间:
2016-09-21 23:14:49
阅读次数:
269
str1 = " nice to \t \n meet you \t \n " str2 = "9999 nice to \t 9 \n meet you \t \n 99999999" 增 删 (1)删除字符串开头和末尾的空白字符 str1.strip() 注:空白符包括: 若干空格,tab键(\ ...
分类:
编程语言 时间:
2016-09-16 17:05:02
阅读次数:
190
#!/usr/bin/python
#-*-coding:utf-8-*-
__author__=‘gaogd‘
‘‘‘
defauth(func):
user=raw_input("inputpasswd:").strip()
ifuser==‘gaogd‘:
print"-----------welcomelogin------"
func()
else:
print"---wrongpasswd--------"
deftask0():
print"dosomethin....0"
de..
分类:
编程语言 时间:
2016-09-07 06:59:30
阅读次数:
190