码迷,mamicode.com
首页 >  
搜索关键字:str1    ( 1981个结果
Object类和String类equals方法有什么区别?
相信很多学习过Java的同学都知道,在比较两个String对象的内容是否相同时是使用equals方法的 如:String str1=new String(“A”); String str2=new String(“B”); String str3=new String(“B”); boolean r ...
分类:其他好文   时间:2017-07-11 01:05:48    阅读次数:191
01、字符串的常见操作
假设有字符串,"hello world python and pythonCourse" 1?? find 与 index str.find( queryStr , start=0 , end=len(str) ) str.index( queryStr , start=0 , end=len(st ...
分类:其他好文   时间:2017-07-09 23:08:15    阅读次数:220
基础函数介绍
sprintf() 函数原型:int sprintf( char *buffer, const char *format [, argument] ... ); 功能介绍: 1、把一个字符串赋值(拷贝)给另一个字符串,如: sprintf(str1, str2);//把字符串str2拷贝给str1 ...
分类:其他好文   时间:2017-07-09 12:40:10    阅读次数:233
卡尔曼滤波实现多项式拟合Matlab
%%%%%%%%%%%%%Q3:多项式系数估计%%%%%%%%%%%%%%%% %%%%%%%%%%2016/07/21%%%%%%%%%%%%%%%%%%% clc;clear; N=10;%样本个数输入 Order=1;%函数阶次输入 M=5;%绘制每M分之1个过程的观测结果曲线 X=linsp... ...
分类:其他好文   时间:2017-07-08 18:53:57    阅读次数:174
python 批量修改包名
decode的作用是将其他编码的字符串转换成unicode编码,如str1.decode('gb2312'),表示将gb2312编码的字符串str1转换成unicode编码。 encode的作用是将unicode编码转换成其他编码的字符串,如str2.encode('gb2312'),表示将unic ...
分类:编程语言   时间:2017-07-08 00:23:40    阅读次数:412
Python序列类型
Python序列类型序列:字符、列表、元组 所有序列都支持迭代 序列表示索引为非负整数的有序对象集合 字符和元组属于不可变序列,列表可变1)字符字符串字面量:把文本放入单引号、双引号或三引号中;‘‘‘‘‘‘ >>>str1=‘hello,fanison‘ >>>type(str1) str 如果要..
分类:编程语言   时间:2017-07-07 20:17:26    阅读次数:345
sql注入tips
转自http://www.wupco.cn/?p=3764 cuit 首先Web300 山水集团 第一步找到加密接口搭代理就不说了 接下来是注入,filter如下 这里主要的难点在于如何按字节拆解返回的值,以完成按字节爆破盲注,waf拦截了我们常用的substr,like,left等函数,这里我查了 ...
分类:数据库   时间:2017-07-06 22:01:17    阅读次数:220
【.Net】c# 让double保留两位小数
1、Math.Round(0.333333,2);//按照四舍五入的国际标准2、 double dbdata=0.335333; string str1=String.Format("{0:F}",dbdata);//默认为保留两位 还有一个类似的方法,但是不提倡: double d1 = 0.33 ...
分类:Windows程序   时间:2017-07-04 16:04:59    阅读次数:235
c++ 字符串
#include #include #include #include #include //模板类型 using std::string; using std::endl; using std::cout; void test0(void) {//栈空间 char str1[] = "hello,... ...
分类:编程语言   时间:2017-07-04 09:51:58    阅读次数:141
python字符串格式化 复制代码
Python2.7.12rc1(v2.7.12rc1:13912cd1e7e8,Jun122016,05:57:31)[MSCv.150064bit(AMD64)]onwin32 Type"copyright","credits"or"license()"formoreinformation.>>>str1="ilovefish">>>str1[:6]‘ilove‘>>>str="111eee">>>str.isalnum() True&..
分类:编程语言   时间:2017-06-30 22:29:35    阅读次数:364
1981条   上一页 1 ... 88 89 90 91 92 ... 199 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!